/* NOREM - HOME / desktop reference: 1440px
   Wersja 24.07 - wycięte powtórzenia treści + luźniejszy rytm pionowy.
   Zasoby graficzne pozostają we wspólnym katalogu ../../assets/. */
:root {
  --page: #fbfaf8;
  --surface: #ffffff;
  --surface-soft: #f8f6f3;
  --ink: #071523;
  --ink-soft: #26323d;
  --muted: #5f6871;
  --line: #e9e7e3;
  --line-strong: #d8d9da;
  --blue: #2f7bc7;
  --blue-soft: #eef6ff;
  --brown: #94745a;
  --gold: #eca536;
  --radius: 20px;
  --shadow: 0 8px 28px rgba(20, 27, 34, 0.055);
  --maxw: 1440px;
  --container-gutter: 24px;
  --hero-photo: url("../../assets/generated/hero-bedroom.png");
  --hardness-photo: url("../../assets/generated/hardness-mattress.png");
  --cta-photo: url("../../assets/generated/cta-bedroom-wide.png");
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-min: 14px;
  --font-body: 16px;
  --font-section: 48px;
  /* rytm pionowy - jedno źródło prawdy dla odstępów między sekcjami */
  --section-space: 48px;
  --head-space: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 1.08;
}
h1,
h2,
h3 {
  text-wrap: balance;
  scroll-margin-top: 24px;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
a,
button,
summary {
  -webkit-tap-highlight-color: rgba(47, 123, 199, 0.16);
}
button:disabled {
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus-visible {
  transform: none;
}
:focus-visible {
  outline: 3px solid rgba(47, 123, 199, 0.45);
  outline-offset: 3px;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}
.container-panel {
  width: calc(100% - var(--container-gutter) - var(--container-gutter));
  max-width: calc(
    var(--maxw) - var(--container-gutter) - var(--container-gutter)
  );
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.menu-toggle {
  display: none;
}
.brand {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: color 0.2s var(--ease);
}
.brand:hover,
.brand-footer:hover {
  color: var(--blue);
}
.brand-mark {
  display: inline-flex;
  width: 64px;
  aspect-ratio: 4 / 1;
  color: var(--ink);
}
.brand-name {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 51px;
  justify-self: center;
  transform: translateX(-80px);
}
.main-nav a {
  position: relative;
  padding-block: 12px;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  border-top: 1px solid var(--ink);
}
.main-nav a::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  border-top: 1px solid var(--ink);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}
.main-nav a:hover::before {
  transform: scaleX(1);
}
.header-tools {
  display: flex;
  justify-self: end;
  align-items: center;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.header-action:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  transform: translateY(-1px);
}
.header-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.header-action--cart {
  padding-right: 9px;
  background: var(--ink);
  color: #fff;
}
.header-action--cart:hover {
  border-color: var(--ink);
  background: #10283d;
}
.cart-count {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

/* shared buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn-dark,
.btn-light {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover,
.btn-light:hover {
  background: #10283d;
  transform: translateY(-1px);
}
.btn svg {
  transition: transform 0.2s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #f9f8f6;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0 19%,
    rgba(255, 255, 255, 0.98) 25%,
    rgba(255, 255, 255, 0.9) 31%,
    rgba(255, 255, 255, 0.56) 38%,
    rgba(255, 255, 255, 0.12) 45%,
    transparent 51%
  );
}
.hero .hero-grid {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: 0;
  padding-block: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: calc(100svh - 77px);
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: 500px;
  margin-left: max(32px, calc((100vw - 1440px) / 2 + 32px));
}
.hero-copy h1 {
  font-size: 72px;
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-sub {
  margin-top: 18px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}
.hero-pills {
  display: flex;
  gap: 38px;
  margin-top: 28px;
}
.hero-pills li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.hero-pills svg {
  width: 21px;
  aspect-ratio: 1;
  stroke-width: 1.45;
}
.hero-copy .btn {
  width: 346px;
  margin-top: 28px;
}
.hero-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30vw;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--hero-photo) center / cover no-repeat;
}

/* hardness */
.hardness {
  background: var(--page);
}

.section-head {
  max-width: 760px;
  margin: 0 auto var(--head-space);
  text-align: center;
}
.section-head h2 {
  font-size: 48px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 12.5px;
}
.hardness .section-head h2 {
  font-size: 42px;
}
.hardness .section-head p {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.45;
}
.hardness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hardness-card {
  --hardness-accent: var(--ink);
  --hardness-tint: #f1f4f7;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 8px 24px rgba(20, 27, 34, 0.07);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.hardness-card--soft {
  --hardness-accent: #247fd7;
  --hardness-tint: #e8f2fd;
}
.hardness-card--medium {
  --hardness-accent: #93694d;
  --hardness-tint: #f5ede8;
}
.hardness-card--hard {
  --hardness-accent: #071b2d;
  --hardness-tint: #eef2f5;
}
.hardness-card:hover {
  transform: translateY(-2px);
}
.hardness-card.is-active {
  border-color: #3989dd;
  box-shadow:
    0 0 0 1px rgba(57, 137, 221, 0.14),
    0 8px 24px rgba(20, 27, 34, 0.07);
}
.hardness-card__summary {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px 24px 20px;
}
.hardness-card__check {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--hardness-accent);
  color: #fff;
}
.hardness-card__check svg {
  width: 16px;
  height: 16px;
}
.hardness-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--hardness-accent);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hardness-card__grade {
  position: relative;
  padding-left: 14px;
  font-size: 20px;
  font-weight: 500;
}
.hardness-card__grade::before {
  content: "";
  position: absolute;
  top: 11%;
  bottom: 11%;
  left: 0;
  width: 1px;
  background: currentColor;
  opacity: 0.45;
}
.hardness-card__summary p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.3;
}
.hardness-card__image {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--hardness-photo) center 56% / cover no-repeat;
}
.hardness-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(3, 11, 18, 0.2));
  pointer-events: none;
}
.hardness-card__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  padding: 20px 24px 20px;
}
.hardness-card__features li {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}
.hardness-card__features svg {
  width: 28px;
  height: 28px;
  color: var(--hardness-accent);
  stroke-width: 1.8;
}
.hardness-card__recommendation {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 22px 22px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--hardness-tint);
  color: var(--hardness-accent);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}
.hardness-card__recommendation svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
/* etykieta w prawym górnym rogu karty, nie na zdjęciu - czytelność
   nie zależy od kadru, który klient wstawi w tło */
.hardness-card__tag {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  padding: 8px 14px;
  border-radius: 0 15px 0 10px;
  background: var(--brown);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.hardness-note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}
.hardness-note strong {
  color: var(--ink);
  font-weight: 700;
}

/* configurator */
.section.configurator {
  padding-top: 0;
}
.config-card {
  display: grid;
  grid-template-columns: minmax(390px, 502px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 56px 56px 0;
}
.config-body {
  min-width: 0;
  align-self: center;
}
.config-media {
  position: relative;
  overflow: hidden;
  height: 500px;
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 62% 27%,
      rgba(255, 255, 255, 0.92),
      transparent 39%
    ),
    linear-gradient(145deg, #dcc8b8, #f0e5dc 57%, #e2d2c6);
}
.config-media__open {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  overflow: hidden;
  border: 0;
  background: transparent;
}
.config-media__open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 67%, rgba(65, 48, 38, 0.05));
  pointer-events: none;
}
.config-image {
  width: 108%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.config-media__open:hover .config-image {
  transform: scale(1.018);
}
.config-media__zoom {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 21, 35, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(55, 42, 34, 0.12);
}
.config-media__zoom svg {
  width: 20px;
  height: 20px;
}

.config-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 48px;
  padding: 0;
  border: 0;
}
.config-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: center;
}
.config-top h2 {
  font-size: 34px;
  letter-spacing: -0.03em;
}
.config-spec-trigger {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid #aeb4b9;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.config-spec-trigger:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.config-spec-trigger svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}
.config-price {
  min-width: 236px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #f7f5f3;
  white-space: nowrap;
}
.config-price span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.config-price strong {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.config-field {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0 0 32px;
}
.config-label {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.config-label span {
  margin-right: 3px;
  color: var(--ink);
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.seg-sizes {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.seg-btn {
  min-width: 0;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.seg-btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
.seg-btn:hover {
  border-color: #9cabb7;
}
.seg-btn:active {
  transform: translateY(1px);
}
.seg-btn.is-on {
  border-color: #4c94e0;
  background: #f8fbff;
  color: var(--blue);
  box-shadow: 0 0 0 1px rgba(76, 148, 224, 0.1);
}
.seg-sizes .seg-btn {
  gap: 0;
  font-size: 15px;
  white-space: nowrap;
}
/* proporcja licznik : przycisk = 1 : 3 */
.config-buy {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: 16px;
  margin-top: 36px;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}
.qty-btn {
  width: 46px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.qty-btn svg {
  width: 17px;
  height: 17px;
}
.qty-btn:hover:not(:disabled) {
  background: var(--surface-soft);
}
.qty-btn:disabled {
  color: var(--muted);
  opacity: 0.55;
}
.qty-val {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}
.btn-buy {
  width: 100%;
  min-height: 56px;
  gap: 14px;
  padding-inline: 24px;
  border-radius: 9px;
  font-size: 17px;
}
.btn-buy span {
  white-space: nowrap;
}
.btn-buy svg {
  width: 19px;
  height: 19px;
}
.config-assur {
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 116px;
  margin-top: 48px;
  padding: 0 25px;
  border-top: 1px solid var(--line);
}
.config-assur li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-inline: 6px;
  color: var(--ink);
}
.config-assur__icon {
  width: 50px;
  height: 50px;
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 50%;
  background: #f2eeeb;
}
.config-assur__icon svg {
  width: 24px;
  height: 24px;
}
.config-assur h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
}
.config-assur p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.product-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #171b1f;
  color: #f8f8f7;
  box-shadow: 0 28px 90px rgba(7, 21, 35, 0.32);
}
body.is-lightbox-open {
  overflow: hidden;
}
.product-lightbox::backdrop {
  background: rgba(7, 15, 23, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-lightbox__panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 42px 50px 24px;
}
.product-lightbox__panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-lightbox__panel p {
  padding-top: 8px;
  font-size: 16px;
  font-weight: 650;
}
.product-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(20, 25, 30, 0.78);
  color: #fff;
}
.product-lightbox__close:hover {
  background: #fff;
  color: var(--ink);
}
.product-lightbox__close svg {
  width: 24px;
  height: 24px;
}

.spec-dialog {
  width: min(610px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(7, 21, 35, 0.08);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(7, 21, 35, 0.24);
}
.spec-dialog::backdrop {
  background: rgba(7, 15, 23, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.spec-dialog__panel {
  padding: 34px 36px 30px;
}
.spec-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
}
.spec-dialog__eyebrow {
  margin-bottom: 8px;
  color: var(--brown);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spec-dialog__header h2 {
  font-size: 32px;
  line-height: 1.05;
}
.spec-dialog__lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.spec-dialog__close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.spec-dialog__close:hover {
  border-color: var(--line-strong);
  background: #efede9;
}
.spec-dialog__close svg {
  width: 20px;
  height: 20px;
}
.spec-list {
  border-top: 1px solid var(--line);
}
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}
.spec-list dt svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--brown);
  stroke-width: 1.65;
}
.spec-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.spec-list__warranty dd {
  font-weight: 500;
}
.spec-list a {
  display: block;
  width: max-content;
  margin-top: 7px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #aeb4b9;
  text-underline-offset: 3px;
}
.spec-list a:hover {
  color: var(--blue);
}

/* detail carousel */
.details {
  background: var(--page);
}
.details .container {
  position: relative;
}
.details-head {
  width: min(760px, 100%);
  margin: 0 auto var(--head-space);
  text-align: center;
}
.details-head h2 {
  font-size: 48px;
}
.details-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}
.details-slider {
  position: relative;
  max-width: calc(100% - 48px);
  margin-inline: auto;
}
/* Strzałki nachodzą na karty. Wysunięcie nie może przekroczyć marginesu
   kontenera (--container-gutter), inaczej przy 1440 px koło jest ścinane
   przez overflow-x: hidden na <body>. */
.carousel-nav {
  position: absolute;
  z-index: 4;
  top: 42%;
  right: calc(var(--container-gutter) * -1);
  left: calc(var(--container-gutter) * -1);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}
/* Wzorzec przycisku slidera - wspólny dla detali i opinii */
.carousel-button,
.reviews-prev,
.reviews-next {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(20, 27, 34, 0.1);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.carousel-button svg,
.reviews-prev svg,
.reviews-next svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}
.carousel-button:hover,
.reviews-prev:hover,
.reviews-next:hover {
  background: #f8f7f5;
}
.carousel-button {
  pointer-events: auto;
}
.carousel-button:active,
.reviews-prev:active,
.reviews-next:active {
  transform: scale(0.98);
}
.carousel-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 9px;
  margin-top: 28px;
}
/* Wzorzec wskaźnika slidera - aktywny wydłuża się w pigułkę */
.carousel-indicator,
.reviews-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d7d4cf;
  cursor: pointer;
  transition:
    width 220ms var(--ease),
    background-color 220ms var(--ease);
}
.carousel-indicator:hover,
.reviews-dots button:hover {
  background: #aaa6a0;
}
.carousel-indicator.is-active,
.reviews-dots button.is-active {
  width: 28px;
  background: var(--ink);
}
.carousel-indicator:focus-visible,
.reviews-dots button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.detail-card {
  overflow: hidden;
  min-width: 0;
  min-height: 452px;
  /* 4 karty w kadrze: 3 przerwy po 16px */
  flex: 0 0 calc((100% - 48px) / 4);
  border: 1px solid #eeece8;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 27, 34, 0.045);
  scroll-snap-align: start;
}
.detail-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.19 / 1;
  object-fit: cover;
}
.detail-card__body {
  padding: 26px 22px 30px;
}
.detail-card__icon {
  width: 48px;
  height: 48px;
  color: var(--brown);
  background-color: var(--surface-soft);
  padding: 12px;
  border-radius: 50px;
  stroke-width: 1.75;
}
.detail-card h3 {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
@media (max-width: 1280px) {
  .detail-card h3 {
    font-size: 18px;
  }
}
.detail-card .detail-card__benefit {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

/* inside */
.inside-grid {
  position: relative;
}
.inside-head {
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
}
.inside-eyebrow {
  color: var(--brown);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}
.inside-head h2 {
  margin-top: 14px;
  font-size: clamp(44px, 4vw, 58px);
  letter-spacing: -0.04em;
}
.inside-layers {
  display: grid;
  grid-template-columns: minmax(0, 59%) minmax(400px, 41%);
  align-items: center;
  margin-top: var(--head-space);
}
.layers-visual-wrap {
  min-width: 0;
}
.layers-visual {
  display: block;
  width: 105%;
  max-width: none;
  height: auto;
  justify-self: center;
  margin-left: -5%;
  object-fit: contain;
}
.layers-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 540px;
}

.layers-list li {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.layer-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3ede6;
  color: var(--brown);
}
.layer-icon svg {
  width: 39px;
  height: 39px;
  stroke-width: 1.7;
}
.layers-list h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.inside .layers-list p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.layers-list li::before {
  content: "";
  position: absolute;
  right: calc(100% - 2px);
  width: clamp(48px, 7vw, 104px);
  border-top: 2px dotted #9ba4ad;
}
/* reviews */
.reviews-main {
  display: grid;
  grid-template-columns: minmax(410px, 0.9fr) minmax(0, 1.8fr);
  gap: 64px;
  align-items: center;
}
.reviews-intro {
  align-self: stretch;
}
.reviews-eyebrow {
  color: var(--brown);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reviews h2 {
  margin-top: 22px;
  font-size: clamp(40px, 3vw, 48px);
  line-height: 1.04;
}
.reviews-lead {
  max-width: 440px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.reviews-score {
  overflow: hidden;
  margin-top: 32px;
  border-radius: 14px;
  background: #f8f7f5;
}
.reviews-rating {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 34px 26px;
}
.reviews-rating > strong {
  font-size: 68px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
.stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.stars-rating {
  font-size: 31px;
  letter-spacing: 2px;
}
.star-empty {
  color: #bc882f;
}
.reviews-rating p {
  margin-top: 6px;
  font-size: 14px;
}
.reviews-rating p a {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #b8b3ac;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.reviews-rating p a:hover {
  color: var(--blue);
}
.reviews-rating p a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.reviews-assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.reviews-assurances li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px 34px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.25;
}
.reviews-assurances li + li {
  border-left: 1px solid var(--line);
}
.reviews-assurances svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  stroke-width: 1.6;
}
.reviews-assurances strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.reviews-assurances a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: #b8b3ac;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.reviews-assurances a:hover {
  color: var(--ink);
}
.reviews-assurances a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.reviews-proof-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 34px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.reviews-proof-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  stroke-width: 1.7;
}
.reviews-link {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 16px 34px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.reviews-link:hover {
  background: #122b3f;
}
.reviews-link:active {
  transform: translateY(1px);
}
.reviews-link svg {
  width: 20px;
  height: 20px;
}
.reviews-carousel {
  position: relative;
  min-width: 0;
  margin-top: auto;
}
.review-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.review-list::-webkit-scrollbar {
  display: none;
}
.review-card {
  min-width: 0;
  min-height: 500px;
  flex: 0 0 calc((100% - 36px) / 3);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 9px 26px rgba(20, 27, 34, 0.065);
}
.review-card__top {
  min-height: 47px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.review-card__top .stars {
  padding-top: 4px;
  font-size: 18px;
  letter-spacing: 0;
}
.review-quote {
  color: #dedbd7;
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 0.72;
}
.review-card h3 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.25;
}
.review-card__text {
  margin-block: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
.review-card__customer {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  margin-top: auto;
}
.review-card__customer p {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}
.review-card__customer p strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.review-card__customer time {
  color: var(--muted);
}
.review-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  color: #2f684e;
  font-size: 11px;
  font-weight: 650;
}
.review-verified svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}
.review-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.review-card__meta p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
}
.review-card__meta svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke-width: 1.6;
}
.review-card__meta strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.reviews-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.reviews-dots {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}
/* faq */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}
.faq .section-head {
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.faq .section-head {
  max-width: none;
}
.faq .section-head h2 {
  margin-bottom: 24px;
}
.faq-intro {
  display: flex;
  flex-direction: column;
}
.faq-lead {
  color: var(--muted);
  line-height: 1.6;
}
.faq-more {
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: var(--font-body);
  line-height: 1.6;
}
.faq-more a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.faq-more a:hover {
  color: var(--blue);
}
.faq-grid {
  min-width: 0;
}
.faq-col {
  display: grid;
  gap: 12px;
}
.faq-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.faq-item:hover,
.faq-item[open] {
  z-index: 1;
  border-color: var(--line-strong);
  background: var(--surface-soft);
}
.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 16px;
  padding: 12px 16px;
  border-radius: inherit;
  list-style: none;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::marker {
  content: "";
}
.faq-number {
  width: 32px;
  flex: 0 0 32px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f2f1ef;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.faq-toggle {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-left: auto;
  transition: color 0.2s var(--ease);
}
.faq-toggle path:last-child {
  transform-origin: center;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.faq-item[open] .faq-toggle path:last-child {
  opacity: 0;
  transform: scaleY(0);
}
.faq-item p {
  max-width: 68ch;
  padding: 0 48px 18px 64px;
  color: var(--muted);
  line-height: 1.6;
}
/* treść pojawia się miękko razem z rozwijaniem wysokości (JS) */
.faq-item[open] p {
  animation: faq-reveal 320ms var(--ease) both;
}
@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fc-right a:hover {
  color: var(--blue);
}

/* closing CTA */
.cta {
  overflow: hidden;
  background: var(--page);
  color: var(--ink);
}
.cta-inner {
  position: relative;
  overflow: hidden;
  padding: 56px 54px;
  border-radius: 20px;
  background: #f4f1ed;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cta-photo) center / cover no-repeat;
}
.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f7f5f1 0 31%,
    rgba(247, 245, 241, 0.8) 40%,
    transparent 59%
  );
}
.cta-copy {
  position: relative;
  z-index: 2;
  width: 430px;
  max-width: none;
  padding-block: 48px;
}
.cta-copy h2 {
  color: var(--ink);
  font-size: 31px;
  line-height: 0.98;
}
.cta-copy p {
  margin-top: 20px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}
.cta-copy .btn {
  margin-top: 28px;
  padding-inline: 24px;
  font-size: 11px;
}
/* footer / STOPKA.png */
.site-footer {
  --footer-ink: #081624;
  --footer-line: #e8e5e1;
  color: var(--footer-ink);
}
.footer-benefits {
  min-height: 148px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  margin-inline: auto;
  padding: 30px 66px;
  border-radius: 12px;
  background: #f7f4f0;
}
.footer-benefit {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: 54px;
}
.footer-benefit + .footer-benefit {
  border-left: 1px solid #dfdcd8;
}
.footer-benefit > svg {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  stroke-width: 1.45;
}
.footer-benefit h3 {
  color: var(--footer-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-benefit p {
  margin-top: 8px;
  color: #35404a;
  font-size: 14px;
  line-height: 1.55;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.22fr 0.86fr 0.86fr;
  gap: 0;
  padding-block: 88px 64px;
}
.brand-footer {
  display: inline-block;
  color: var(--footer-ink);
  font-size: 39px;
  font-weight: 550;
  letter-spacing: 0.2em;
  line-height: 1;
  transition: color 0.2s var(--ease);
}
.ft-desc,
.fc-sub,
.fb-muted {
  color: #3e4851;
}
.ft-desc {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.6;
}
.ft-col {
  padding: 8px 0 0 80px;
  border-left: 1px solid var(--footer-line);
}
.footer-nav-title {
  margin-bottom: 29px;
  color: var(--footer-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.ft-col a {
  display: block;
  width: max-content;
  padding-block: 7px;
  color: #26313b;
  font-size: 16px;
  transition:
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.ft-col a:hover {
  color: var(--blue);
  transform: translateX(3px);
}
.footer-contact,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-contact {
  position: relative;
  padding-block: 28px;
}
.footer-contact::before,
.footer-contact::after {
  content: "";
  position: absolute;
  left: 50%;
  width: calc(100vw - 32px);
  transform: translateX(-50%);
  border-top: 1px solid var(--footer-line);
}
.footer-contact::before {
  top: 0;
}
.footer-contact::after {
  bottom: 0;
}
.fc-left,
.fc-right,
.fc-right a {
  display: flex;
  align-items: center;
}
.fc-left {
  gap: 30px;
}
.fc-right {
  gap: 0;
}
.fc-right a {
  gap: 20px;
  min-height: 64px;
  padding-inline: 46px;
  font-size: 16px;
}
.fc-right a + a {
  border-left: 1px solid #d9d6d2;
}
.fc-right svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  stroke-width: 1.8;
}
.fc-ic {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7f4f0;
}
.fc-ic svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}
.fc-title {
  font-size: 18px;
  font-weight: 700;
}
.fc-sub {
  margin-top: 3px;
  font-size: 14px;
}
.footer-bottom {
  min-height: 106px;
  font-size: 13px;
}
.fb-left,
.fb-mid {
  line-height: 1.65;
}
.fb-mid {
  padding-left: 72px;
  border-left: 1px solid #d9d6d2;
}
.fb-pay {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fb-pay img {
  width: auto;
  height: 34px;
  object-fit: contain;
}
.fb-pay img:nth-child(2) {
  width: 49px;
}
.fb-pay img:nth-child(3) {
  width: 51px;
}
.fb-pay img:nth-child(4) {
  width: 54px;
}

/* desktop composition and type scale */
.main-nav a,
.hero-pills li,
.faq-number,
.cta-copy .btn,
.footer-nav-title,
.footer-bottom {
  font-size: var(--font-min);
}

.section-head p,
.layers-list p,
.faq-item summary,
.faq-item p,
.cta-copy p,
.ft-desc,
.fc-sub,
.fb-muted {
  font-size: var(--font-body);
}

.section-head h2,
.details-head h2,
.faq .section-head h2,
.cta-copy h2 {
  font-size: var(--font-section);
}

.hardness-card {
  padding: 0;
}
.carousel-nav {
  top: 42%;
}
.faq .section-head {
  margin-bottom: 0;
}
.faq-item summary {
  padding-block: 18px;
}
.seg-btn,
.qty-btn {
  min-height: 44px;
}

/* motion */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.55s var(--ease) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
.reveal-delay-1 {
  --reveal-delay: 0.08s;
}
.reveal-delay-media {
  --reveal-delay: 0.12s;
}
.reveal-delay-2 {
  --reveal-delay: 0.16s;
}
.reveal-delay-3 {
  --reveal-delay: 0.24s;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* desktop-first responsive adjustments */
@media (max-width: 1380px) {
  .main-nav {
    transform: none;
  }
  .header-actions {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .site-header.is-scrolled {
    padding-block: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
  }
}

@media (max-width: 1199px) {
  .hero-media {
    left: 42%;
  }
  .hardness > .container {
    padding-inline: 28px;
  }
  .hardness-grid {
    gap: 20px;
  }
  .hardness-card__features {
    gap: 12px;
    padding-inline: 16px;
  }
  .hardness-card__features li {
    font-size: 13px;
  }
  .configurator > .container {
    padding-inline: 28px;
  }
  .config-card {
    grid-template-columns: minmax(320px, 38%) minmax(0, 62%);
    column-gap: 40px;
    padding: 40px 40px 0;
  }
  .config-media {
    height: 460px;
  }
  .config-top {
    gap: 20px;
    margin-bottom: 32px;
  }
  .config-top h2 {
    font-size: 30px;
  }
  .config-price {
    min-width: 200px;
    min-height: 68px;
  }
  .config-price strong {
    font-size: 30px;
  }
  .config-field {
    margin-bottom: 28px;
  }
  .seg,
  .seg-sizes {
    gap: 8px;
  }
  .seg-sizes .seg-btn {
    font-size: 14px;
  }
  .config-buy {
    margin-top: 30px;
  }
  .config-assur {
    min-height: 110px;
    margin-top: 36px;
    padding-inline: 12px;
  }
  .config-assur li {
    gap: 14px;
  }
  .config-assur__icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
  .config-assur__icon svg {
    width: 22px;
    height: 22px;
  }
  .config-assur h3 {
    font-size: 15px;
  }
  .config-assur p {
    font-size: 13px;
  }
  .carousel {
    gap: 16px;
  }
  .reviews-main {
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.45fr);
    gap: 44px;
  }
  .reviews h2 {
    font-size: 40px;
  }
  .reviews-lead {
    font-size: 16px;
  }
  .reviews-rating {
    gap: 20px;
    padding-inline: 22px;
  }
  .reviews-rating > strong {
    font-size: 58px;
  }
  .stars-rating {
    font-size: 25px;
  }
  .reviews-assurances li {
    gap: 10px;
    padding-inline: 20px;
    font-size: 12px;
  }
  .reviews-assurances strong {
    font-size: 15px;
  }
  .reviews-assurances svg {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .review-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 1100px) {
  /* cztery bloczki nie mieszczą się w rzędzie: układ 2x2 */
  .config-assur {
    grid-template-columns: repeat(2, 1fr);
    min-height: 0;
    padding-block: 22px;
    row-gap: 22px;
  }
  .config-assur li {
    justify-content: flex-start;
    padding-inline: 18px;
  }
  .footer-benefits {
    padding-inline: 24px;
  }
  .footer-benefit {
    gap: 18px;
    padding-inline: 24px;
  }
  .footer-benefit > svg {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .ft-col {
    padding-left: 44px;
  }
  .fc-right a {
    padding-inline: 24px;
  }
  .fb-mid {
    padding-left: 30px;
  }
}

@media (max-width: 900px) {
  :root {
    --font-section: 40px;
    --section-space: 72px;
    --head-space: 44px;
  }
  html {
    scroll-padding-top: 80px;
  }
  .site-header {
    padding-block: 12px;
  }
  .main-nav {
    gap: 24px;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0 46%,
      rgba(255, 255, 255, 0.2) 70%,
      transparent
    );
  }
  .hero-copy {
    width: auto;
    margin: 0;
    padding: 46px 24px;
  }
  .hero-media {
    top: 280px;
    left: 0;
  }
  .hardness > .container {
    padding-inline: 24px;
  }
  .hardness-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hardness-card {
    width: 100%;
    max-width: 650px;
    margin-inline: auto;
  }
  .hardness-card__features li {
    font-size: 15px;
  }
  .configurator > .container {
    padding-inline: 24px;
  }
  .config-card {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 32px 32px 0;
  }
  .config-media {
    width: 100%;
    max-width: 650px;
    height: auto;
    aspect-ratio: 4 / 3;
    justify-self: center;
  }
  .config-body {
    padding-top: 32px;
  }
  /* jedna kolumna: pasek gwarancji na końcu karty, nie między zdjęciem a formularzem */
  .config-assur {
    grid-row: auto;
    grid-column: 1;
    margin-top: 32px;
  }
  .details-head {
    width: min(620px, 100%);
  }
  .detail-card {
    flex-basis: 240px;
  }
  .reviews-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .reviews-intro {
    max-width: 620px;
  }
  .reviews-score,
  .reviews-link {
    max-width: 480px;
  }
  .inside-layers {
    grid-template-columns: minmax(0, 52%) minmax(360px, 48%);
  }
  .layers-visual {
    width: 112%;
    margin-left: -10%;
  }
  .layers-list {
    gap: 20px;
  }
  .layers-list li {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 104px;
  }
  .layer-icon {
    width: 64px;
    height: 64px;
  }
  .layer-icon svg {
    width: 32px;
    height: 32px;
  }
  .layers-list h3 {
    font-size: 18px;
  }
  .inside .layers-list p {
    font-size: 14px;
  }
  .layers-list li::before {
    display: none;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq-lead {
    max-width: 48ch;
  }
  .cta-inner {
    padding: 48px 32px 0;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .ft-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --font-section: 36px;
  }
  .header-inner {
    grid-template-columns: auto minmax(44px, 1fr) auto;
  }
  .brand {
    grid-row: 1;
    grid-column: 1;
  }
  .header-tools {
    grid-row: 1;
    grid-column: 3;
  }
  .js .menu-toggle {
    grid-row: 1;
    grid-column: 2;
    width: 44px;
    height: 44px;
    display: grid;
    justify-self: center;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
  }
  .menu-toggle span {
    width: 19px;
    height: 1.5px;
    background: currentColor;
    transition:
      transform 0.2s var(--ease),
      opacity 0.2s var(--ease);
  }
  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }
  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .main-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding-top: 8px;
  }
  .js .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    left: 24px;
    z-index: 30;
    justify-self: stretch;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease),
      visibility 0.2s;
  }
  .js .site-header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
  }
  .main-nav a::before,
  .main-nav a:first-child::after {
    display: none;
  }
  .main-nav a:hover {
    background: var(--surface-soft);
  }
  .header-action > span:not(.cart-count) {
    display: none;
  }
  .header-action--cart {
    position: relative;
  }
  .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    border: 2px solid #fff;
    font-size: 9px;
  }
  .reviews-main {
    gap: 40px;
  }
  .reviews h2 {
    margin-top: 16px;
    font-size: 38px;
  }
  .reviews-lead {
    margin-top: 16px;
    font-size: 15px;
  }
  .reviews-score,
  .reviews-link {
    max-width: none;
  }
  .review-card {
    flex-basis: 88%;
  }
  .footer-benefits {
    grid-template-columns: 1fr;
    padding: 12px 22px;
  }
  .footer-benefit {
    min-height: 104px;
    padding-inline: 4px;
  }
  .footer-benefit + .footer-benefit {
    border-top: 1px solid #dfdcd8;
    border-left: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 48px 38px;
  }
  .ft-brand {
    grid-column: auto;
  }
  .ft-col {
    padding: 28px 0 0;
    border-top: 1px solid var(--footer-line);
    border-left: 0;
  }
  .footer-contact,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .fc-left {
    align-items: flex-start;
    gap: 18px;
  }
  .fc-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .fc-right a {
    padding-inline: 0;
  }
  .fc-right a + a {
    border-top: 1px solid var(--footer-line);
    border-left: 0;
  }
  .fb-mid {
    padding: 20px 0 0;
    border-top: 1px solid var(--footer-line);
    border-left: 0;
  }
  .fb-pay {
    padding-top: 8px;
  }
}

@media (max-width: 620px) {
  :root {
    --font-section: 32px;
    --section-space: 60px;
    --head-space: 36px;
    --container-gutter: 20px;
  }
  html {
    scroll-padding-top: 68px;
  }
  .site-header {
    padding-block: 10px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-mark svg {
    width: 54px;
  }
  .header-actions {
    gap: 3px;
  }
  .header-action {
    width: 40px;
    min-height: 40px;
    padding-inline: 0;
  }
  .hero {
    padding-bottom: 66vw;
  }
  .hero-copy {
    padding: 38px 20px;
  }
  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 48px);
  }
  .hero-sub br {
    display: none;
  }
  .hero-pills {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .hero-pills li {
    font-size: 12px;
  }
  .hero-copy .btn {
    width: 100%;
    padding-inline: 20px;
  }
  .hero-media {
    top: 330px;
  }
  .hardness > .container {
    padding-inline: 20px;
  }
  .hardness .section-head h2 {
    font-size: 32px;
  }
  .hardness .section-head p {
    font-size: 17px;
  }
  .hardness-card {
    border-radius: 14px;
  }
  .hardness-card__summary {
    min-height: 172px;
    /* zapas u góry, żeby plakietka w rogu nie dotykała ikony - karty
       są tu jedna pod drugą, więc zapas dotyczy wszystkich trzech */
    padding: 40px 18px 20px;
  }
  .hardness-card h3 {
    font-size: 24px;
  }
  .hardness-card__summary p {
    font-size: 17px;
  }
  .hardness-card__image {
    height: 174px;
  }
  .hardness-card__features {
    gap: 14px;
    padding: 24px 18px 22px;
  }
  .hardness-card__features li {
    gap: 10px;
    font-size: 13px;
  }
  .hardness-card__features svg {
    width: 24px;
    height: 24px;
  }
  .hardness-card__recommendation {
    margin-inline: 12px;
    font-size: 13px;
  }
  .hardness-card__tag {
    padding: 7px 12px;
    border-radius: 0 13px 0 10px;
    font-size: 13px;
  }
  .hardness-note {
    margin-top: 28px;
    font-size: 14px;
  }
  .configurator > .container {
    padding-inline: 16px;
  }
  .config-card {
    padding: 16px 16px 0;
    border-radius: 14px;
  }
  .config-media {
    border-radius: 10px;
  }
  .config-media__zoom {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
  .config-body {
    padding-top: 26px;
  }
  .config-top {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
  }
  .config-top h2 {
    font-size: 28px;
  }
  .config-price {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    justify-content: flex-start;
    padding-inline: 18px;
  }
  .config-price strong {
    font-size: 28px;
  }
  .config-field {
    margin-bottom: 24px;
  }
  .config-label {
    font-size: 17px;
  }
  .seg {
    gap: 7px;
  }
  .seg-btn {
    height: 50px;
    gap: 6px;
    padding-inline: 7px;
    font-size: 14px;
  }
  .seg-btn svg {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .seg-sizes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .seg-sizes .seg-btn {
    font-size: 13px;
  }
  /* na wąskich ekranach licznik na całą szerokość nad przyciskiem */
  .config-buy {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .qty {
    width: 100%;
  }
  .qty-btn {
    width: 56px;
    height: 52px;
  }
  .btn-buy {
    min-height: 54px;
    font-size: 16px;
  }
  .config-assur {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    margin-top: 26px;
    padding-block: 12px;
  }
  .config-assur li {
    justify-content: flex-start;
    gap: 16px;
    min-height: 76px;
    padding-inline: 0;
    text-align: left;
  }
  .config-assur__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .config-assur__icon svg {
    width: 21px;
    height: 21px;
  }
  .config-assur h3 {
    margin-bottom: 4px;
    font-size: 15px;
  }
  .config-assur p {
    font-size: 13px;
  }
  .product-lightbox {
    width: 100vw;
    height: 100dvh;
  }
  .product-lightbox__panel {
    padding: 52px 18px 20px;
  }
  .product-lightbox__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
  .spec-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .spec-dialog__panel {
    padding: 26px 20px 22px;
  }
  .spec-dialog__header {
    gap: 14px;
    padding-bottom: 22px;
  }
  .spec-dialog__header h2 {
    font-size: 28px;
  }
  .spec-dialog__close {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 14px;
  }
  .spec-list dd {
    padding-left: 29px;
  }
  .details-head {
    width: 100%;
  }
  .carousel {
    margin-inline: 0;
  }
  .carousel-nav {
    display: none;
  }
  .carousel-indicators {
    margin-top: 22px;
  }
  .inside-layers {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .inside-grid {
    padding-block: 0;
  }
  .inside-head h2 {
    font-size: 38px;
  }
  .layers-list br {
    display: none;
  }
  .layers-visual {
    width: 100%;
    margin-left: 0;
  }
  .layers-list {
    max-width: none;
  }
  .layers-list li {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 108px;
  }
  .reviews {
    border-radius: 18px;
  }
  .reviews h2 {
    font-size: 34px;
  }
  .reviews-rating {
    gap: 16px;
    padding: 23px 18px 21px;
  }
  .reviews-rating > strong {
    font-size: 54px;
  }
  .stars-rating {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .reviews-assurances {
    grid-template-columns: 1fr;
  }
  .reviews-assurances li {
    min-height: 70px;
    padding-inline: 22px;
    font-size: 12px;
  }
  .reviews-assurances li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .reviews-link {
    min-height: 58px;
    padding-inline: 22px;
    font-size: 15px;
  }
  .review-card {
    min-height: 410px;
    flex-basis: 92%;
    padding: 26px 22px 22px;
  }
  .review-card__meta {
    grid-template-columns: 1fr;
  }
  .reviews-prev,
  .reviews-next,
  .carousel-button {
    width: 50px;
    height: 50px;
  }
  .faq-item summary {
    gap: 12px;
    padding-inline: 12px;
  }
  .faq-item p {
    padding: 0 20px 18px 44px;
  }
  .cta-inner {
    padding: 40px 25px 0;
  }
  .cta-inner::before {
    left: 25%;
    opacity: 0.55;
  }
  .cta-inner::after {
    background: linear-gradient(
      90deg,
      #f7f5f1 0 40%,
      rgba(247, 245, 241, 0.7) 72%,
      transparent
    );
  }
  .cta-copy {
    width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --container-gutter: 14px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-mark svg {
    width: 48px;
  }
  .header-action {
    width: 36px;
  }
  .main-nav {
    right: 14px;
    left: 14px;
  }
  .hero {
    padding-bottom: 76vw;
  }
  .hero-pills {
    display: grid;
  }
}

.site-footer .fc-sub {
  font-size: 14px;
}

/* wspólny rytm pionowy głównych sekcji */
main > .section {
  padding-block: var(--section-space);
}
main > .cta {
  padding-block: var(--section-space);
}
