:root {
  --bg: #fafaf7;
  --card: #ffffff;
  --text: #111111;
  --muted: #555555;
  --line: #e5e5e0;
  --accent: #f6c400;
  --dark: #1e1e1e;
  --success: #eaf8ef;
  --error: #ffe8e8;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.08);
  --radius: 22px;
  /* Jednolity system kart */
  --radius-card: 18px;
  --radius-card-lg: 22px;
  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.04), 0 14px 34px rgba(17, 17, 17, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(17, 17, 17, 0.05), 0 22px 48px rgba(17, 17, 17, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

[id] {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Montserrat", Inter, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

/* Lepki kontener: belka promo + header zawsze na wierzchu */
.site-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #ffd21a, var(--accent) 50%, #ffd21a);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.topbar strong {
  font-weight: 900;
}

@media (max-width: 680px) {
  .topbar {
    font-size: 0.79rem;
    padding: 8px 12px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 50;
  max-width: 340px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.16);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions .btn {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 0.84rem;
}

@media (max-width: 680px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 72px;
    padding: 11px 13px;
    max-width: none;
    border-radius: 12px;
    gap: 8px;
  }
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 229, 224, 0.85);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
}

.brand img {
  display: block;
  width: clamp(185px, 18vw, 260px);
  height: auto;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:hover,
.text-link:hover {
  color: #8f7200;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.phone-link {
  white-space: nowrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-link:hover {
  background: var(--accent, #f6c400);
  color: #1c1c1c;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.nav-social {
  display: none;
}

/* ===== Rozwijane menu „Banery" ===== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(246, 196, 0, 0.55);
  border-radius: 999px;
  background: #fff8d6;
  font: inherit;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-dropdown-toggle .chev {
  width: 12px;
  height: 12px;
  color: #b88f00;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown[data-open="true"] .nav-dropdown-toggle {
  background: var(--accent, #f6c400);
  border-color: var(--accent, #f6c400);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(246, 196, 0, 0.32);
}
.nav-dropdown:hover .nav-dropdown-toggle .chev,
.nav-dropdown:focus-within .nav-dropdown-toggle .chev,
.nav-dropdown[data-open="true"] .nav-dropdown-toggle .chev {
  color: var(--text);
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
  transform-origin: top center;
  min-width: 268px;
  display: grid;
  gap: 1px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(17, 17, 17, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s;
  z-index: 80;
}
/* przezroczysty mostek wypełnia lukę między zakładką a menu — kursor nie traci hovera */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
/* strzałka wskazująca zakładkę */
.nav-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 3px 0 0 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[data-open="true"] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #faf7ec;
  color: #8f7200;
}
.nav-dropdown-menu a.is-overview {
  margin-bottom: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  color: var(--muted, #555);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--dark);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--dark);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--text);
}

.section {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) 0;
}

.compact {
  padding: 30px 0;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 74px);
  margin: 0;
  padding: 74px max(18px, calc((100vw - 1400px) / 2)) 64px;
  overflow: hidden;
  background: #111;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  background: url("img/hero/hero-baner.webp") center / cover no-repeat;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.7) 45%, rgba(17, 17, 17, 0.28) 100%),
    linear-gradient(0deg, rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.08));
}

.hero .eyebrow {
  color: var(--accent);
}

.accent-text {
  color: var(--accent);
}

.hero h1,
.hero .hero-lead,
.hero .check-list li,
.hero .microcopy {
  color: #fff;
}

.hero .hero-lead,
.hero .microcopy {
  color: rgba(255, 255, 255, 0.82);
}

.hero .text-link {
  color: #fff;
}

.hero .text-link:hover {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 14px;
  color: #8a7200;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5.1vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-lead,
.section-heading p {
  color: var(--muted);
  font-size: 1.07rem;
}

.hero-lead {
  max-width: 680px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.hero-stats a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.hero-stats a:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--accent);
}

/* Całe karty ofert/pakietów klikalne */
.offer-grid article.is-clickable,
.pricing-grid article.is-clickable {
  cursor: pointer;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 700px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.product-card li,
.offer-grid li,
.pricing-grid li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before,
.product-card li::before,
.offer-grid li::before,
.pricing-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 14px;
}

.helper-cta {
  min-height: 46px;
  padding: 0 2px;
  white-space: nowrap;
}

.microcopy,
.disclaimer {
  color: var(--muted);
  font-size: 0.94rem;
}

.quick-card,
.calculator-card,
.price-result,
.product-card,
.offer-grid article,
.pricing-grid article,
.industry-grid article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.quick-card {
  background: rgba(255, 255, 255, 0.94);
  padding: 26px;
  backdrop-filter: blur(18px);
}

.quick-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(246, 196, 0, 0.2);
}

.mini-calc {
  display: grid;
  gap: 12px;
}

.quick-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--success);
}

.quick-result strong,
.quick-result .text-link,
.hero .quick-result .text-link {
  color: var(--text);
}

.quick-result .text-link:hover,
.hero .quick-result .text-link:hover {
  color: #8f7200;
}

.quick-result strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.quick-result p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-strip a {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.trust-strip a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.calc-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: max(18px, calc((100vw - 1400px) / 2));
  padding-left: max(18px, calc((100vw - 1400px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(246, 196, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #fff, var(--bg));
}

.calc-section .section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.calc-section .section-heading h2 {
  max-width: 700px;
}

.calc-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.calc-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.calculator-card,
.price-result,
.contact-form {
  padding: 24px;
}

.calculator-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.06);
}

.calc-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.calc-card-head span {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 900;
}

.calc-card-head h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.calc-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Dolny pas lewej karty: ceny startowe + co w cenie */
.calc-extras {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.calc-help-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 196, 0, 0.13), rgba(255, 255, 255, 0.86));
  padding: 16px;
}

.calc-included {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.calc-included strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.calc-included ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-included li {
  position: relative;
  padding-left: 26px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
}

.calc-included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(246, 196, 0, 0.28);
}

.calc-included li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 0;
  font-size: 0.72rem;
  font-weight: 900;
  color: #8a6d00;
}

/* Większe pola w kalkulatorze (wygodniejsze wpisywanie, mniej pustki na dole) */
.calculator-card .form-grid {
  gap: 22px 18px;
}
.calculator-card .form-grid label {
  font-size: 0.9rem;
}
.calculator-card .form-grid input,
.calculator-card .form-grid select {
  padding: 16px 16px;
  font-size: 1.02rem;
}
.calc-card-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
}
.calc-section .checkbox-row {
  margin: 22px 0;
}

@media (max-width: 620px) {
  .calc-extras {
    grid-template-columns: 1fr;
  }
}

.calc-help-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.calc-help-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.calc-help-box span {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Dymek/opis przy wyborze projektu */
.design-field {
  position: relative;
}

.field-hint {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.field-hint:empty {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
/* [hidden] musi wygrać z display:grid (np. pola faktury ukryte do zaznaczenia) */
.form-grid[hidden] {
  display: none;
}

/* Na desktopie trzymaj kluczowe grupy pól w jednej linii (ciaśniej, równo):
   - wymiary baneru (szer./wys./ilość),
   - materiał / miejsce / termin,
   - imię / telefon / e-mail.
   Kalkulator (widthCm) i faktura (firma/NIP) zostają bez zmian. Na mobile - stack. */
@media (min-width: 760px) {
  .form-grid:has(input[name="width"]),
  .form-grid:has(select[name="deadline"]),
  .form-grid:has(input[name="email"]) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0;
}

.checkbox-row label,
.rodo,
fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

/* Wizualizacja wydruku - dodatek + animowany dymek */
.contact-form .form-step label.addon-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form .form-step label.addon-field:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.addon-field input[type="checkbox"] {
  margin-top: 2px;
}

.addon-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.addon-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.addon-price {
  border-radius: 999px;
  background: var(--accent);
  padding: 1px 9px;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 800;
}

.addon-sub {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.label-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.tip-trigger:focus-visible {
  outline: 3px solid rgba(246, 196, 0, 0.9);
  outline-offset: 2px;
}

.has-tip {
  position: relative;
}

.tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(300px, 82vw);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 26px;
  border: 7px solid transparent;
  border-top-color: var(--dark);
}

.has-tip:hover > .tip,
.has-tip:focus-within > .tip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .tip {
    transition: none;
  }
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.price-result {
  position: sticky;
  top: 96px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: #111;
  background:
    linear-gradient(135deg, rgba(246, 196, 0, 0.16), transparent 34%),
    var(--dark);
  color: #fff;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.18);
}
/* Panel wyniku klikalny — klik w cenę/wynik przenosi do formularza */
.price-result.is-clickable {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.price-result.is-clickable:hover {
  box-shadow: 0 26px 76px rgba(17, 17, 17, 0.26);
}
.price-result.is-clickable:hover [data-calc-submit] {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.price-result::before {
  content: "";
  display: block;
  height: 5px;
  margin: -24px -24px 22px;
  background: var(--accent);
}

.price-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.price-result-head small {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.result-label {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-result > strong {
  display: block;
  margin: 6px 0 24px;
  font-size: clamp(2.65rem, 4.7vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.price-result dl {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
}

.price-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.price-result dl div:last-child {
  border-bottom: 0;
}

.price-result dt {
  color: rgba(255, 255, 255, 0.66);
}

.price-result dd {
  margin: 0;
  font-weight: 800;
}

.price-result p {
  color: rgba(255, 255, 255, 0.7);
}

.shipping-note {
  margin: 0 0 14px;
  font-size: 0.82rem;
}

.ship-progress {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff8d6;
  border: 1px solid var(--accent, #f6c400);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c1c1c !important;
}

.ship-progress strong {
  color: #8a6d00 !important;
}

.ship-progress.is-free {
  background: #e7f7ea;
  border-color: #2e9e57;
  color: #1f7a41 !important;
}

.ship-progress.is-free strong {
  color: #1f7a41 !important;
}

.discount-row dt,
.discount-row dd {
  color: #1f7a41 !important;
  font-weight: 800;
}

.shipping-note strong {
  color: var(--accent);
}

[data-delivery-row].is-free dt,
[data-delivery-row].is-free dd {
  color: var(--accent);
}

.next-steps-mini {
  margin: 18px 0 22px;
  border: 1px solid rgba(246, 196, 0, 0.26);
  border-radius: 16px;
  background: rgba(246, 196, 0, 0.08);
  padding: 14px;
}

.next-steps-mini span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.next-steps-mini ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.price-result .btn {
  width: 100%;
  margin-top: auto;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}

.price-result .btn:hover {
  border-color: #fff;
  background: #fff;
}

/* Sekcja rodzajów banerów — szersza na desktopie, żeby 5 kart miało oddech */
#banery {
  width: min(1440px, calc(100% - 48px));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

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

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

.product-card {
  position: relative;
  padding: 24px;
}

.badge-recommended {
  position: absolute;
  top: -13px;
  right: 20px;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(17,17,17,0.18);
}

.product-card span,
.offer-grid span,
.pricing-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card ul,
.offer-grid ul,
.pricing-grid ul {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.design-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1400px) / 2));
  padding-left: max(18px, calc((100vw - 1400px) / 2));
  background: linear-gradient(180deg, #fff 0%, #fff8d6 55%, #fff3a8 100%);
}

.design-section .section-heading p {
  color: rgba(17, 17, 17, 0.72);
}

.offer-grid,
.pricing-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.offer-grid article,
.pricing-grid article,
.industry-grid article {
  padding: 24px;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
}

.callout-text {
  min-width: 0;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.callout p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.callout .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }

  .callout .btn {
    width: 100%;
  }
}

.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-grid article {
  position: relative;
}

.pricing-grid .featured,
.product-card.featured {
  position: relative;
  border: 2px solid var(--dark);
  transform: translateY(-8px);
}

/* Wyróżnienie sekcji pakietów */
.pricing-section {
  background:
    radial-gradient(circle at 50% -10%, rgba(246, 196, 0, 0.16), transparent 45%);
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pricing-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 32px;
  border: 1px solid rgba(246, 196, 0, 0.55);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(246, 196, 0, 0.18), rgba(255, 255, 255, 0.7));
  padding: 16px 22px;
}

.pricing-banner-icon {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 1.3rem;
}

.pricing-banner p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.steps-grid {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: steps;
}

.steps-grid.steps-six {
  grid-template-columns: repeat(3, 1fr);
}

.steps-grid article {
  padding: 22px;
  border-top: 3px solid var(--dark);
}

.steps-grid span {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 900;
}

.centered {
  width: fit-content;
  margin: 26px auto 0;
}

.industry-grid article {
  box-shadow: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--dark);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.18s ease;
}

tbody tr:nth-child(even) {
  background: #faf9f5;
}

tbody tr:hover {
  background: rgba(246, 196, 0, 0.1);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  font-weight: 900;
}

/* Cena w tabeli — wyróżniona */
td:nth-child(4) {
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

/* Rekomendacja — chip */
td:last-child {
  color: var(--muted);
  font-weight: 700;
}

/* ===== Strona: Dziękujemy ===== */
.thankyou-section {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 240px);
}

.thankyou {
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.thankyou-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(246, 196, 0, 0.4);
}

.thankyou h1 {
  margin-bottom: 14px;
}

.thankyou p {
  max-width: 540px;
  margin: 0 auto 10px;
  color: var(--muted);
}

.thankyou .button-row {
  justify-content: center;
  margin-top: 26px;
  margin-bottom: 0;
}

@media (max-width: 680px) {
  th,
  td {
    padding: 13px 14px;
    font-size: 0.92rem;
  }
  .thankyou {
    padding: 32px 20px;
  }
  .thankyou-section {
    min-height: auto;
    padding: 30px 0 60px;
  }
}

/* ===== Opinie klientów (pełna szerokość, przewijane w bok) ===== */
.reviews-section {
  width: 100%;
  max-width: none;
  margin: 0;
}

.reviews-section .section-heading,
.reviews-section .reviews-cta {
  width: min(1400px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 24px 22px max(18px, calc((100vw - 1400px) / 2));
  cursor: grab;
  scrollbar-width: thin;
}

.reviews-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.reviews-track::-webkit-scrollbar {
  height: 8px;
}

.reviews-track::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.18);
  border-radius: 999px;
}

.reviews-track::-webkit-scrollbar-track {
  background: transparent;
}

.review-card {
  flex: 0 0 clamp(280px, 80vw, 360px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Podniesienie karty na hover (gdy nie przeciągamy) */
.reviews-track:not(.is-dragging) .review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(17, 17, 17, 0.12);
}

/* Płynne dociąganie kart przy przewijaniu dotykiem */
@media (hover: none) {
  .review-card:hover {
    transform: none;
  }
}

.review-stars {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.review-card p {
  margin: 0;
  line-height: 1.55;
}

.review-author {
  margin-top: auto;
  font-weight: 800;
}

.review-author span {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Karty poradnika w karuzeli (reużywają .review-card) */
.guide-card .eyebrow { margin: 0; }
.guide-card h3 { margin: 2px 0 0; font-size: 1.2rem; line-height: 1.25; }
.guide-card > p { margin: 0; color: var(--muted); }
.guide-card .text-link { margin-top: auto; color: var(--text); }
.guide-card .text-link:hover { color: #92660a; }

/* Opinie (#opinie) - czytelna siatka zamiast przewijanego paska + ładniejsze karty */
#opinie .reviews-track[data-reviews-dynamic] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  overflow: visible;
  cursor: default;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 4px 0;
}
#opinie .review-card {
  flex: none;
  position: relative;
  padding: 30px 26px 24px;
  border-radius: 20px;
  overflow: hidden;
}
#opinie .review-card::before {
  content: "\201D";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.32;
}
#opinie .review-stars {
  font-size: 1.15rem;
  letter-spacing: 3px;
}
#opinie .review-card p {
  font-size: 1.05rem;
  color: #2a2a2a;
  position: relative;
  z-index: 1;
}
#opinie .review-author {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.reviews-cta {
  margin-top: 26px;
  text-align: center;
}

@media (max-width: 1050px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Blog: lista wpisów ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card .tag {
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(246, 196, 0, 0.18);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6f5a00;
}

.blog-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.blog-card .text-link {
  margin-top: auto;
}

/* ===== Blog: pojedynczy artykuł ===== */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 6px 0 24px;
}

.article figure {
  margin: 24px 0;
}

.article figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.article figure figcaption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.article h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.article h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.article p,
.article li {
  color: #2a2a2a;
  font-size: 1.04rem;
  line-height: 1.7;
}

.article ul {
  padding-left: 0;
  list-style: none;
}

.article ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 24px;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.answer-lead {
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.answer-lead p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
}

.answer-lead p strong {
  font-weight: 800;
}

.article-cta {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 44px 32px;
  border: 1px solid rgba(246, 196, 0, 0.22);
  border-radius: 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(246, 196, 0, 0.20), transparent 52%),
    radial-gradient(120% 150% at 0% 100%, rgba(246, 196, 0, 0.10), transparent 50%),
    linear-gradient(135deg, #1f1f27 0%, #121216 100%);
  box-shadow: 0 24px 60px rgba(16, 16, 20, 0.28);
}

/* delikatny akcent nad nagłówkiem */
.article-cta::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(246, 196, 0, 0.55);
}

.article-cta strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.article-cta p {
  margin: 0 auto 24px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.article-cta .btn {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(246, 196, 0, 0.30);
}

.article-cta .btn:hover {
  background: #ffd21f;
  border-color: #ffd21f;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(246, 196, 0, 0.42);
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #8f7200;
}

@media (max-width: 1050px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Strona: Realizacje ===== */
.realization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.realization-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.realization-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.realization-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.realization-card:hover img {
  transform: scale(1.05);
}

.realization-card .realization-body {
  flex: 1 1 auto;
}

.realization-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.realization-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.realization-meta span:first-child {
  color: #8a7200;
}

.realization-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--line);
}

.realization-card h3 {
  margin: 4px 0 0;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.realization-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.realization-cta {
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 1050px) {
  .realization-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .realization-grid {
    grid-template-columns: 1fr;
  }
}

.mockup-grid-list article {
  aspect-ratio: 4 / 3;
  position: relative;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mockup-grid-list article:not(.is-placeholder):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.mockup-grid-list article:not(.is-placeholder):hover img {
  transform: scale(1.05);
}

.mockup-grid-list article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0.72));
  pointer-events: none;
}

.mockup-grid-list article.is-placeholder {
  background:
    linear-gradient(135deg, rgba(246, 196, 0, 0.78), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(17, 17, 17, 0.08) 24px 25px);
}

.mockup-grid-list article.is-placeholder::after {
  display: none;
}

.mockup-grid-list img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.mockup-grid-list div {
  position: relative;
  z-index: 1;
  width: fit-content;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  padding: 6px 10px;
  font-weight: 900;
}

.mockup-grid-list span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.mockup-grid-list article.is-placeholder span {
  color: var(--text);
  text-shadow: none;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  align-items: start;
}
@media (max-width: 680px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
}

summary {
  cursor: pointer;
  padding: 12px 20px;
  font-weight: 900;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 20px 14px;
  color: var(--muted);
  animation: faq-open 0.22s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-section .section-heading {
  margin-bottom: 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-form.is-prefilled {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(246, 196, 0, 0.18), var(--shadow);
}

.prefill-message {
  display: none;
  margin: 0;
  border: 1px solid rgba(246, 196, 0, 0.45);
  border-radius: 16px;
  background: rgba(246, 196, 0, 0.14);
  padding: 14px 16px;
  color: var(--text);
  font-weight: 900;
}

.prefill-message.is-visible {
  display: block;
}

@keyframes field-flash {
  0% {
    background-color: #fff;
    border-color: var(--line);
    box-shadow: none;
  }
  15% {
    background-color: rgba(246, 196, 0, 0.75);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(246, 196, 0, 0.3);
  }
  45% {
    background-color: rgba(246, 196, 0, 0.75);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(246, 196, 0, 0.3);
  }
  100% {
    background-color: #fff;
    border-color: var(--line);
    box-shadow: none;
  }
}

.field-flash {
  animation: field-flash 1.9s ease;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 900;
}

.file-field span {
  color: var(--muted);
  font-size: 0.85rem;
}
/* „Dodaj plik" w jednej linii: etykieta + przycisk wyboru + podpowiedź obok siebie */
.contact-form .form-step label.file-field {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.contact-form .form-step .file-field input[type="file"] {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
}
.file-field > span:last-of-type {
  flex: 1 1 200px;
}

/* Multi-banner form */
#banners-list { display: flex; flex-direction: column; gap: 10px; }
.banner-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg, #fafaf8); }
.banner-item:first-child { background: #fff; border-color: #d8d5cc; }
.banner-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.banner-label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.banner-remove { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.banner-remove:hover { background: #fee2e2; color: #b42318; }
.banner-dims { margin: 0; }
.btn-add-banner { margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: none; background: transparent; font: inherit; font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; text-decoration: underline; text-underline-offset: 3px; text-decoration-style: dashed; text-decoration-color: var(--line); }
.btn-add-banner:hover { color: var(--ink); text-decoration-color: var(--ink); background: transparent; }

.form-message {
  display: none;
  margin: 0;
  border-radius: 14px;
  padding: 14px;
  font-weight: 800;
}

.form-message.is-success {
  display: block;
  background: var(--success);
}

.form-message.is-error {
  display: block;
  background: var(--error);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
  align-items: start;
  gap: 26px 44px;
  padding: 46px clamp(18px, 4vw, 56px) 26px;
  background: #141413;
  color: #fff;
}

.site-footer nav a,
.footer-links a {
  font-size: 0.9rem;
}

.site-footer p,
.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer a {
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer nav a:hover,
.site-footer address a:hover,
.footer-links a:hover {
  color: #f6c400;
}

.site-footer nav,
.site-footer address {
  display: grid;
  align-content: start;
  gap: 9px;
  font-style: normal;
}

/* Długa lista linków lokalnych - w dwóch kolumnach, żeby nie była brzydkim słupkiem */
.footer-links {
  columns: 2;
  column-gap: 26px;
  font-style: normal;
}
.footer-links a {
  display: block;
  break-inside: avoid;
  margin-bottom: 9px;
}

.footer-logo {
  display: block;
  width: min(190px, 100%);
  height: auto;
  margin-bottom: 12px;
}

/* Pasek na samym dole stopki */
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.is-open {
    position: absolute;
    top: calc(100% + 6px);
    right: 12px;
    left: 12px;
    width: auto;
    justify-self: stretch;
    justify-items: stretch;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow);
    text-align: left;
  }

  .main-nav.is-open a {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: left;
  }

  .main-nav.is-open .nav-social {
    display: block;
    color: var(--accent, #f6c400);
    font-weight: 800;
  }

  /* Dropdown „Banery" w menu mobilnym — rozwija się w pionie */
  .main-nav.is-open .nav-dropdown {
    display: block;
    width: 100%;
  }
  .main-nav.is-open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-weight: 800;
  }
  /* mobile: zakładka zostaje subtelna (kremowy pill), bez ciężkiego złota na otwarciu */
  .main-nav.is-open .nav-dropdown[data-open="true"] .nav-dropdown-toggle {
    background: #fff8d6;
    border-color: rgba(246, 196, 0, 0.55);
    box-shadow: none;
  }
  .main-nav.is-open .nav-dropdown[data-open="true"] .nav-dropdown-toggle .chev {
    color: #b88f00;
  }
  .main-nav.is-open .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    padding: 2px 0 6px 10px;
    border: none;
    box-shadow: none;
  }
  /* na mobile brak strzałki i mostka (menu jest statyczne) */
  .main-nav.is-open .nav-dropdown-menu::before,
  .main-nav.is-open .nav-dropdown-menu::after {
    display: none;
  }
  .main-nav.is-open .nav-dropdown[data-open="true"] .nav-dropdown-menu {
    display: grid;
  }
  .main-nav.is-open .nav-dropdown-menu a {
    padding: 11px 13px;
    white-space: normal;
  }

  .hero,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 28px;
  }

  .price-result {
    position: static;
    align-self: auto;
  }

  .trust-strip,
  .pricing-grid,
  .steps-grid,
  .steps-grid.steps-six {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .industry-grid,
  .mockup-grid-list,
  .three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card.featured {
    transform: none;
  }

  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 86px;
  }

  [id] {
    scroll-margin-top: 112px;
  }

  .site-header {
    min-height: 76px;
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: clamp(170px, 52vw, 210px);
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 14px rgba(17, 17, 17, 0.08);
  }

  .section {
    width: min(100% - 32px, 1400px);
    padding: 46px 0;
  }

  .calc-section {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  /* ---- HERO MOBILE: pełnoekranowy, czysty układ blokowy ---- */
  .hero {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    padding: 36px 18px 40px;
    background-position: center;
  }

  .hero::before {
    background-image: url("img/hero/hero-baner-mobile.jpg");
  }

  .hero::after {
    background: rgba(17, 17, 17, 0.68);
  }

  .hero-copy {
    max-width: 100%;
  }

  /* Ukryj mini-kalkulator w hero — sticky CTA na dole wystarczy */
  .quick-card {
    display: none;
  }

  /* Hero — uproszczony na mobile */
  .check-list {
    display: none;
  }

  .hero .microcopy {
    display: none;
  }

  /* Zostaw tylko główny przycisk CTA, ukryj secondary */
  .hero .btn-secondary {
    display: none;
  }

  /* Hero stats — mniejsze chipy w jednej linii */
  .hero-stats {
    gap: 8px;
    margin: 16px 0 18px;
  }

  .hero-stats a {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 0.82rem;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.15rem, 10.8vw, 3.05rem);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(1.85rem, 8.8vw, 2.55rem);
    line-height: 1.04;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* 1 kolumna */
  .check-list,
  .form-grid,
  .steps-grid,
  .steps-grid.steps-six,
  .site-footer,
  .pricing-grid,
  .three {
    grid-template-columns: 1fr;
  }

  /* 2 kolumny — wystarczająco szerokie */
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trust-strip.compact {
    width: 100%;
    padding: 12px 16px 102px !important;
    background: #fff;
  }

  .trust-strip a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: none;
  }

  .trust-strip a::before {
    content: "";
    grid-row: span 2;
    width: 9px;
    height: 9px;
    margin-top: 0.55em;
    border-radius: 50%;
    background: var(--accent);
  }

  .trust-strip strong {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .trust-strip span {
    margin-top: 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .product-grid,
  .industry-grid,
  .offer-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Mockupy — 1 kolumna, niższa karta */
  .mockup-grid-list {
    grid-template-columns: 1fr;
  }

  .mockup-grid-list article {
    min-height: 200px;
  }

  /* Przyciski w kartach pakietów i projektów — pełna szerokość */
  .pricing-grid .btn,
  .product-card .text-link,
  .offer-grid .btn {
    width: 100%;
    justify-content: center;
  }

  .button-row .btn {
    width: 100%;
  }

  .button-row {
    gap: 10px;
    margin-bottom: 0;
  }

  .hero-lead {
    max-width: 34rem;
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .calculator-card,
  .price-result,
  .contact-form {
    padding: 18px;
  }

  .price-result::before {
    margin: -18px -18px 18px;
  }

  /* Duża liczba ceny w kalkulatorze — mniejsza na mobile */
  .price-result > strong {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  .calc-card-head {
    gap: 12px;
  }

  .calc-points span {
    width: 100%;
  }

  .pricing-grid .featured,
  .product-card.featured {
    transform: none;
  }

  .product-card,
  .pricing-grid article,
  .offer-grid article,
  .industry-grid article {
    padding: 22px;
  }

  .product-card p,
  .pricing-grid p,
  .offer-grid p,
  .industry-grid p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .product-card ul,
  .pricing-grid ul,
  .offer-grid ul {
    gap: 8px;
    margin: 16px 0;
  }

  .product-card li,
  .pricing-grid li,
  .offer-grid li {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .product-card span,
  .offer-grid span,
  .pricing-grid span {
    margin-bottom: 16px;
    padding: 7px 12px;
    font-size: 0.86rem;
  }

  .badge-recommended {
    top: -12px;
    right: 18px;
  }

  .callout {
    width: calc(100% - 24px);
    margin: 20px auto 0;
    padding: 18px;
  }

  /* Sticky CTA nie zasłania treści na dole */
  .contact-section {
    padding-bottom: 120px;
  }

  .calc-section {
    padding-bottom: 108px;
  }

  .site-footer {
    padding-bottom: 120px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 8px;
    min-height: 50px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    padding: 5px;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 38px rgba(17, 17, 17, 0.24);
    backdrop-filter: blur(14px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  /* Ukryj sticky CTA, gdy formularz jest na ekranie - żeby „Wyceń baner" nie konkurował z „Wyślij zapytanie" */
  .mobile-sticky-cta.is-hidden {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }

  .mobile-sticky-cta a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dark);
    font-size: 0.98rem;
  }

  .mobile-sticky-cta a + a {
    background: var(--accent);
    color: var(--text);
  }
}

/* ===== Pasek promocyjny ===== */
.promo-strip {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  background: #1c1c1c;
  color: #fff;
  border-radius: 14px;
  font-size: 0.95rem;
  text-align: center;
}
.promo-strip strong { color: var(--accent, #f6c400); }
.promo-strip .promo-sep { color: #6a6a6a; }

/* ===== Gwarancje ===== */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.guarantee-card {
  position: relative;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e8e8e2);
  border-radius: var(--radius-card-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.guarantee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent, #f6c400);
}
.guarantee-card .guarantee-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff3bf, #ffe06b);
  color: #1c1c1c;
  margin-bottom: 16px;
}
.guarantee-card .guarantee-ico svg { width: 26px; height: 26px; }
.guarantee-card h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.25; }
.guarantee-card p { margin: 0; color: var(--muted, #555); font-size: 0.92rem; line-height: 1.6; }

/* ===== O nas ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 36px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  max-height: 300px;
  background: linear-gradient(135deg, #1c1c1c 0%, #3a3a3a 100%);
}
.about-photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #cfcfc8;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 20px;
}
.about-copy h2 { margin: 6px 0 14px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 900px) {
  .guarantees-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 180px; max-height: 240px; }
}
@media (max-width: 520px) {
  .guarantees-grid { grid-template-columns: 1fr; }
}

/* ===== Box "Masz inne pytanie?" ===== */
.contact-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 22px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff8d6;
  border: 1px solid var(--accent, #f6c400);
}
.contact-callout strong { font-size: 1.05rem; }
.contact-callout p { margin: 4px 0 0; color: var(--muted, #555); font-size: 0.92rem; }
.contact-callout-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pływająca podpowiadajka „Oddzwonimy?" (lewy dolny róg) */
.callback-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
}
.callback-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.callback-toggle svg { width: 19px; height: 19px; }
.callback-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.28);
}
.callback-widget.is-open .callback-toggle { display: none; }

.callback-pop {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, calc(100vw - 40px));
  background: var(--dark);
  color: #fff;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 22px 60px rgba(17, 17, 17, 0.4);
  animation: cb-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cb-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.callback-pop strong { display: block; font-size: 1.08rem; }
.callback-pop > p { margin: 4px 0 14px; color: #d7d7d0; font-size: 0.9rem; }
.callback-pop form { display: flex; flex-direction: column; gap: 10px; }
.callback-pop input[type="tel"] {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font: inherit;
  background: #fff;
  color: #111;
}
.callback-pop .btn { width: 100%; }
.callback-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  color: #d7d7d0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.callback-close:hover { color: #fff; }
.callback-msg { margin: 2px 0 0; font-size: 0.88rem; font-weight: 700; }
.callback-msg.is-error { color: #ffb4b4; }
.callback-msg.is-success { color: #7ef0a8; }
@media (max-width: 680px) {
  /* na mobile jest sticky „Zadzwoń" w stopce - podpowiadajkę chowamy, by nie zaśmiecać */
  .callback-widget { display: none; }
}

/* Walidacja na bieżąco - podświetlanie pól */
.contact-form label.field-ok > input,
.contact-form label.field-ok > select,
.contact-form label.field-ok > textarea {
  border-color: #43c46b;
  background-image: none;
}
.contact-form label.field-err > input,
.contact-form label.field-err > select,
.contact-form label.field-err > textarea {
  border-color: #e25555;
  background: #fff6f6;
}

/* Pasek obietnic nad formularzem */
.form-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}
.form-promises span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.88rem;
  color: var(--muted, #555);
  line-height: 1.4;
}
.form-promises span::before {
  content: "✓";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #f6c400);
  color: #111;
  font-weight: 800;
  font-size: 0.8rem;
}
.form-promises strong { color: var(--ink, #111); }
@media (max-width: 760px) {
  .form-promises { grid-template-columns: 1fr; gap: 8px; }
}

/* Callout: sprawdzenie pliku */
.file-check-callout { background: #fff; border-style: dashed; }

/* Cross-sell w formularzu */
.cross-sell {
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px dashed #d8d5cc;
  border-radius: 14px;
  background: #fff;
}
.cross-sell-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink, #111);
  margin-bottom: 12px;
}
.cross-sell-options { display: flex; flex-wrap: wrap; gap: 8px; }
.cross-chip {
  position: relative;
  cursor: pointer;
}
.cross-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cross-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fafaf8;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted, #555);
  transition: border-color 0.15s ease-out, background 0.15s ease-out, color 0.15s ease-out;
  user-select: none;
}
.cross-chip:hover span { border-color: var(--ink, #111); color: var(--ink, #111); }
.cross-chip input:checked + span {
  border-color: var(--accent, #f6c400);
  background: #fff8d6;
  color: var(--ink, #111);
}
.cross-chip input:checked + span::after {
  content: "✓";
  font-weight: 800;
  color: #9a7b00;
}
.cross-chip input:focus-visible + span {
  outline: 2px solid var(--ink, #111);
  outline-offset: 2px;
}
.cross-sell-note {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted, #888);
}

/* Popularne formaty */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.format-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease-out, transform 0.15s ease-out;
}
.format-card:hover { border-color: var(--ink, #111); transform: translateY(-2px); }
.format-card.featured { border: 2px solid var(--accent, #f6c400); }
.format-badge {
  position: absolute;
  top: -11px;
  left: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent, #f6c400);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
}
.format-dims { font-weight: 800; font-size: 1.08rem; color: var(--ink, #111); }
.format-area { font-size: 0.82rem; color: var(--muted, #777); }
.format-price { font-size: 1.35rem; font-weight: 800; color: var(--ink, #111); margin-top: 6px; }
.format-use { font-size: 0.82rem; color: var(--muted, #777); }
@media (max-width: 960px) {
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .formats-grid { grid-template-columns: 1fr; }
}

/* Klik w e-mail = kopiowanie */
a[href^="mailto:"] { cursor: copy; }
a[href^="mailto:"].is-copied { color: #1f7a41 !important; }

/* ===== Formularz krokowy ===== */
.contact-form .form-step {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfcfa;
  /* fieldset domyślnie ma min-inline-size:min-content - blokuje zwężanie na mobile */
  min-width: 0;
}
.contact-form .form-step > legend {
  display: flex;
  align-items: center;
  gap: 10px;
  float: none;
  padding: 0;
  margin-bottom: 2px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
}
.form-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #f6c400);
  color: #1c1c1c;
  font-size: 0.92rem;
  font-weight: 900;
  flex: 0 0 auto;
}
.field-opt { font-weight: 600; color: var(--muted); font-size: 0.85em; }

/* Wybór projektu jako klikalne karty */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.radio-cards label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.radio-cards label:hover { border-color: var(--accent, #f6c400); }
.radio-cards input { accent-color: #1c1c1c; }
.radio-cards label:has(input:checked) {
  border-color: var(--accent, #f6c400);
  background: #fffdf2;
  box-shadow: 0 0 0 2px rgba(246, 196, 0, 0.35);
}

/* Główny przycisk wysyłki - mocno widoczny, żółty (nie czarny) */
.btn-submit {
  width: 100%;
  min-height: 62px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: var(--accent, #f6c400);
  color: var(--text, #16161a);
  border-color: var(--accent, #f6c400);
  box-shadow: 0 14px 34px rgba(246, 196, 0, 0.45);
}
.btn-submit:hover {
  background: #ffd21a;
  border-color: #ffd21a;
  color: var(--text, #16161a);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(246, 196, 0, 0.5);
}

/* Przycisk płatności online (główna akcja sklepu) */
.btn-pay {
  background: var(--dark, #16161a);
  color: #fff;
  border-color: var(--dark, #16161a);
  box-shadow: 0 10px 26px rgba(22, 22, 26, 0.18);
}
.btn-pay:hover {
  background: var(--accent, #f6c400);
  border-color: var(--accent, #f6c400);
  color: var(--text, #16161a);
}
.btn-pay:disabled { opacity: 0.7; cursor: progress; }
/* Alternatywa: zapytanie o wycenę (akcja drugorzędna) */
.btn-quote {
  background: #fff;
  color: var(--text, #16161a);
  border-color: var(--line, #e0e0d8);
  font-weight: 700;
}
.btn-quote:hover { border-color: var(--dark, #16161a); }
.pay-or {
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 0.88rem;
  margin: 12px 0 8px;
}

@media (max-width: 680px) {
  .radio-cards { grid-template-columns: 1fr; }
}

/* ===== Subtelne tło zdjęciowe w wybranych sekcjach ===== */
.section.section--bg {
  padding: 60px clamp(20px, 5vw, 56px);
  border-radius: 28px;
  background-image:
    linear-gradient(rgba(250, 250, 247, 0.93), rgba(250, 250, 247, 0.95)),
    url("img/hero/hero-baner.webp");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

@media (max-width: 680px) {
  .section.section--bg {
    padding: 40px 18px;
    border-radius: 20px;
  }
}


/* ===== Dostępność: widoczny focus (brief) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(246, 196, 0, 0.9);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible {
  outline-offset: 3px;
}

/* ===== Mikrointerakcje: szanuj preferencje ruchu ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Stopka: spokojniejsza, linki w 2 kolumnach na desktopie ===== */
@media (min-width: 900px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 8px;
  }
}

/* ===== Fix układu pól w formularzu krokowym ===== */
.contact-form .form-step label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.contact-form .form-step input,
.contact-form .form-step select,
.contact-form .form-step textarea {
  width: 100%;
}
.contact-form .form-step input[type="checkbox"],
.contact-form .form-step input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
/* checkboxy (faktura, RODO) i karty wyboru - w wierszu */
.contact-form .form-step .rodo {
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  font-weight: 600;
}
.contact-form .radio-cards label {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}
.contact-form .radio-cards label span {
  flex: 1;
}
.contact-form .radio-cards input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.contact-form .file-field {
  gap: 6px;
}

/* ===== Final CTA band ===== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: linear-gradient(135deg, #1c1c1c, #2c2c2c);
  color: #fff;
}
.cta-band h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  max-width: 520px;
}
.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-cta {
  background: var(--accent);
  color: #1c1c1c;
  border-color: var(--accent);
}
.btn-cta:hover {
  background: #ffd633;
  border-color: #ffd633;
  color: #1c1c1c;
}
.btn-cta-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}
@media (max-width: 680px) {
  .cta-band-actions .btn { width: 100%; }
}

/* Podpis pomocniczy pod etykietą pola */
.contact-form .form-step .field-hint {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -2px;
}

/* ===== Nuta zaufania przy przycisku formularza ===== */
.form-trust {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f4f9f4;
  border: 1px solid #cde8cf;
  color: #1f5c2e;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

/* Promo-strip: lekki oddech, gdy stoi między sekcjami */
.promo-strip {
  margin-top: 6px;
  margin-bottom: 6px;
}

/* ===== Sekcja ciemna (kontrast) ===== */
.section.section--dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #18181c 0%, #232327 100%);
  border-radius: 28px;
  padding: clamp(44px, 6vw, 84px) clamp(22px, 5vw, 56px);
}
/* Motyw marki: diagonalny klin (jak na mockupach banerów) */
.section.section--dark > * {
  position: relative;
  z-index: 1;
}
.section.section--dark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 58%, 0 0);
  z-index: 0;
  pointer-events: none;
}
.section.section--dark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 78px;
  width: 220px;
  height: 220px;
  background: rgba(246, 196, 0, 0.22);
  clip-path: polygon(100% 0, 100% 50%, 0 0);
  z-index: 0;
  pointer-events: none;
}
.section.section--dark .section-heading p.eyebrow {
  color: var(--accent);
}
.section.section--dark h2 {
  color: #fff;
}
.section.section--dark .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}
.section.section--dark .steps-grid article h3 {
  color: #fff;
}
.section.section--dark .steps-grid article p {
  color: rgba(255, 255, 255, 0.66);
}
@media (max-width: 680px) {
  .section.section--dark {
    border-radius: 20px;
  }
  .section.section--dark::before,
  .section.section--dark::after {
    width: 130px;
    height: 130px;
    right: 0;
  }
  .section.section--dark::after {
    display: none;
  }
}

/* ===== Pływający przycisk: rodzaje materiałów (rozwijana pigułka) ===== */
.material-fab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 60;
  /* domyślnie schowany za prawą krawędzią; pokazuje go .is-visible */
  transform: translateY(-50%) translateX(120%);
  display: flex;
  align-items: center;
  padding: 6px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  border-radius: 999px 0 0 999px;
  box-shadow: -7px 10px 26px rgba(17, 17, 17, 0.22);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.material-fab.is-visible {
  transform: translateY(-50%) translateX(0);
}
/* złoty „chip" z ikoną — zawsze widoczny */
.material-fab .mf-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  flex-shrink: 0;
}
.material-fab .mf-ico svg {
  width: 18px;
  height: 18px;
}
/* etykieta — zwinięta do zera, rozwija się przy najechaniu (tylko desktop) */
.material-fab .mf-label {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  font-weight: 800;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease 0.1s;
}
.material-fab:hover .mf-label,
.material-fab:focus-visible .mf-label {
  max-width: 300px;
  margin-left: 10px;
  margin-right: 8px;
  opacity: 1;
}
.material-fab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
/* Mobile / dotyk: tylko mała ikona, bez rozwijanej etykiety */
@media (hover: none), (max-width: 680px) {
  .material-fab {
    padding: 5px;
  }
  .material-fab .mf-ico {
    width: 30px;
    height: 30px;
  }
  .material-fab .mf-ico svg {
    width: 16px;
    height: 16px;
  }
  .material-fab .mf-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .material-fab,
  .material-fab .mf-label {
    transition: opacity 0.2s ease;
  }
}

/* ===== Strona Materiały ===== */
.materials-list {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 84px);
  margin-top: 10px;
}
.material-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(26px, 4.5vw, 60px);
  align-items: center;
}
/* naprzemiennie: w parzystych wierszach zdjęcie po lewej */
.material-row:nth-child(even) .material-figure {
  order: -1;
}
.material-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.material-price {
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 13px;
  border-radius: 999px;
}
.material-tag {
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 13px;
  border-radius: 999px;
}
.material-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.material-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 48ch;
}
.material-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.material-specs li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  font-size: 0.96rem;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.material-specs b {
  color: var(--text);
  font-weight: 800;
}
.material-specs span {
  color: var(--muted);
}
.material-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0e8, #fafaf7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  cursor: zoom-in;
}
.material-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.material-figure-hint {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 22px;
  line-height: 1.5;
}
.material-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(10, 10, 10, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.material-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.material-lightbox img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  -webkit-user-drag: none;
  user-select: none;
}
.material-lightbox-close {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.material-lightbox-close:hover {
  background: var(--accent);
  color: var(--dark);
}
.materials-cta {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}
.materials-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.materials-cta p {
  margin: 0 auto 22px;
  color: #d7d7d0;
  max-width: 52ch;
}
.materials-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .material-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .material-row:nth-child(even) .material-figure {
    order: 0;
  }
}

/* ===== Strona produktu (per materiał) ===== */
.ph-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.ph-hero h1 {
  margin-bottom: 14px;
}
.ph-hero-media {
  position: relative;
}
.ph-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.16);
}
.ph-hero-media figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted, #555);
}
.ph-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.ph-split-media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.ph-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ph-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1rem;
  line-height: 1.5;
}
.ph-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent, #f6c400);
  color: #161616;
  font-weight: 800;
  font-size: 0.82rem;
}
.ph-points strong {
  color: var(--ink, #161616);
}
@media (max-width: 880px) {
  .ph-hero {
    grid-template-columns: 1fr;
  }
  .ph-hero-media {
    order: -1;
    max-width: 460px;
  }
  .ph-split {
    grid-template-columns: 1fr;
  }
  .ph-split-media {
    order: -1;
  }
}

/* ===== Landing: ciemny hero ze zdjęciem banera na płocie ===== */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 64px);
  background: #111;
  color: #fff;
}
.lp-hero::before,
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.lp-hero::before {
  z-index: -2;
  background: #111 url("img/hero/hero-ogrodzenie.jpg") center / cover no-repeat;
  background-image: image-set(
    url("img/hero/hero-ogrodzenie.webp") type("image/webp"),
    url("img/hero/hero-ogrodzenie.jpg") type("image/jpeg")
  );
}
.lp-hero::after {
  background: linear-gradient(100deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.88) 42%, rgba(15, 15, 15, 0.74) 100%);
}
.lp-hero-copy {
  max-width: 660px;
}
.lp-hero .eyebrow {
  color: var(--accent, #f6c400);
}
.lp-hero h1 {
  color: #fff;
}
.lp-hero .lp-hero-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}
.lp-hero .microcopy {
  color: rgba(255, 255, 255, 0.7);
}
.lp-hero .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.lp-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
@media (max-width: 680px) {
  .lp-hero {
    border-radius: 18px;
    padding: 26px 20px 30px;
  }
  .lp-hero::before {
    background-image: url("img/hero/hero-ogrodzenie-mobile.jpg");
  }
  .lp-hero .button-row .btn {
    width: 100%;
  }
}

/* ===== Landing: pasek z ceną w hero (jasne tło) ===== */
.lp-pricebar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 11px 18px;
  border-radius: 14px;
  background: #fff8d6;
  border: 1px solid var(--accent, #f6c400);
}
.lp-pricebar .lp-stars {
  color: var(--accent, #f6c400);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  -webkit-text-stroke: 0.4px #b88f00;
}
.lp-pricebar .lp-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink, #16161a);
}
@media (max-width: 680px) {
  .lp-pricebar {
    width: 100%;
    margin: 14px 0 18px;
    padding: 10px 14px;
  }
  .lp-pricebar .lp-price {
    font-size: 0.9rem;
  }
}

/* ===== Hero — chip z ceną + gwiazdkami (tylko mobile) ===== */
.hero-price-anchor {
  display: none;
}
@media (max-width: 680px) {
  .hero-price-anchor {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 4px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
  }
  .hero-price-anchor .hero-stars {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
  .hero-price-anchor strong {
    color: var(--accent);
  }
}

/* ===== Modal wizualizacji 3D (przed wysłaniem formularza) ===== */
.viz-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 15, 15, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.viz-modal[hidden] { display: none; }
.viz-modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: vizpop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vizpop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.viz-modal-card img { display: block; width: 100%; height: auto; }
.viz-modal-card h3 { margin: 16px 20px 6px; font-size: 1.18rem; line-height: 1.25; }
.viz-modal-card h3 span { color: #8a7200; font-size: 0.85em; white-space: nowrap; }
.viz-modal-card > p { margin: 0 20px 16px; color: var(--muted, #555); font-size: 0.92rem; line-height: 1.5; }
.viz-modal-actions { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; }
.viz-modal-actions .btn { width: 100%; }
.viz-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.viz-modal-close:hover { background: rgba(0, 0, 0, 0.65); }
body.viz-modal-open { overflow: hidden; }

/* ===== Mobile (tylko strona główna): hero → formularz → reszta ===== */
@media (max-width: 680px) {
  body.home main {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  /* elementy flex muszą móc się zwęzić do ekranu (inaczej poziome przewijanie/oddalanie) */
  body.home main > * {
    min-width: 0;
    max-width: 100%;
  }
  /* formularz zaraz pod hero */
  body.home .hero { order: -2; }
  body.home .contact-section { order: -1; }
  /* kalkulator i „Popularne formaty" (kierują do kalkulatora) znikają na mobile */
  body.home .calc-section,
  body.home .formats-section { display: none; }
}

/* ===== Mobile: poprawki, by formularz nie wystawał poza ekran ===== */
@media (max-width: 680px) {
  /* kolumna kroku = dokładnie szerokość kontenera; dzieci muszą się zmieścić */
  .contact-form .form-step { grid-template-columns: minmax(0, 1fr); }
  .contact-form .form-step > * { min-width: 0; max-width: 100%; }
  /* radio „Projekt graficzny" w jednej kolumnie (3 obok siebie nie mieszczą się) */
  .contact-form .radio-cards { grid-template-columns: 1fr; }
  .contact-form .radio-cards > label { min-width: 0; max-width: 100%; }
  /* pole pliku nie może być szersze niż ekran */
  .file-field input[type="file"] { max-width: 100%; }
  .form-promises { grid-template-columns: 1fr; }
}

/* ===== Sklep (siatka produktów e-commerce) ===== */
.shop-hero .section-heading { margin-bottom: 18px; }
.shop-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 4px;
}
.shop-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.shop-trust strong { color: var(--text); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.shop-card:hover {
  transform: translateY(-3px);
  border-color: #e2e0d7;
  box-shadow: 0 22px 50px rgba(17, 17, 17, 0.10);
}
.shop-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 196, 0, 0.5);
}
.shop-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3ee;
}
.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-card:hover .shop-card-media img { transform: scale(1.04); }
.shop-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}
.shop-card-tag.is-featured {
  background: var(--accent, #f6c400);
  border-color: var(--accent, #f6c400);
  color: #1c1c1c;
}
.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 18px;
  flex: 1;
}
.shop-card-use {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}
.shop-card h3 .spec { color: var(--muted); font-weight: 600; font-size: 0.82em; }
.shop-card-body p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.shop-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.shop-card-price { font-size: 0.92rem; color: var(--muted); }
.shop-card-price strong { font-size: 1.18rem; color: var(--text); }
.shop-card-cta {
  font-size: 0.9rem;
  font-weight: 800;
  color: #8a7200;
  white-space: nowrap;
  transition: transform 0.18s ease;
}
.shop-card:hover .shop-card-cta { transform: translateX(2px); }

/* Box pomocy „nie wiesz który materiał" */
.shop-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 26px;
  border: 1px solid var(--accent, #f6c400);
  border-radius: 18px;
  background: #fff8d6;
}
.shop-help strong { font-size: 1.05rem; }
.shop-help p { margin: 5px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 52ch; }
.shop-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 680px) {
  .shop-grid { grid-template-columns: 1fr; gap: 16px; }
  .shop-help { flex-direction: column; align-items: flex-start; }
  .shop-help-actions { width: 100%; }
  .shop-help-actions .btn { flex: 1; }
}
