:root {
  --charcoal: #171512;
  --charcoal-2: #242018;
  --paper: #fbf8f1;
  --paper-2: #f1eadc;
  --ink: #241f18;
  --muted: #746c5e;
  --timber: #c18b4e;
  --gold: #d7c88e;
  --moss: #6f7d4e;
  --line: #ded6c4;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(222, 214, 196, 0.72);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand__icon {
  display: block;
  width: 56px;
  height: auto;
}

.brand__name {
  color: #9e8545;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  color: #4d473c;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav .is-active {
  background: #ebe2cf;
  color: var(--ink);
}

.header-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-contact a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-contact a:first-child,
.button--primary {
  border: 1px solid rgba(193, 139, 78, 0.55);
  background: #b98948;
  color: #fffaf1;
}

.header-contact a:last-child {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #3d372e;
}

.button--ghost {
  border: 1px solid rgba(251, 248, 241, 0.38);
  background: rgba(251, 248, 241, 0.12);
  color: var(--paper);
}

.button--light {
  border: 1px solid #d4c7a9;
  background: #ffffff;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--paper);
}

.hero--home {
  background:
    linear-gradient(90deg, rgba(18, 15, 11, 0.94) 0%, rgba(18, 15, 11, 0.76) 46%, rgba(18, 15, 11, 0.28) 100%),
    url("assets/wizualizacje/tlo-strona-glowna.jpg") center / cover no-repeat;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.hero__inner,
.page-hero,
.section,
.cta-section,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 104px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(193, 139, 78, 0.52);
  border-radius: 6px;
  color: #9b733d;
  background: #f2e7d1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ead99a;
  background: rgba(23, 21, 18, 0.58);
  border-color: rgba(215, 200, 142, 0.58);
  backdrop-filter: blur(16px);
}

h1 {
  max-width: 850px;
  margin-bottom: 26px;
  font-size: 74px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

.note-marker {
  color: #9b733d;
  font-size: 0.5em;
  line-height: 0;
  vertical-align: super;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: #e2d8c7;
  font-size: 22px;
  line-height: 1.55;
}

.page-hero {
  padding: 74px 0 46px;
}

.page-hero--technology {
  width: 100%;
  min-height: 560px;
  margin: 0;
  padding: 104px max(20px, calc((100vw - 1180px) / 2)) 88px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(18, 15, 11, 0.96) 0%, rgba(18, 15, 11, 0.84) 52%, rgba(18, 15, 11, 0.46) 100%),
    url("assets/wizualizacje/moduly-hala.jpg") center / cover no-repeat;
}

.page-hero--contact {
  width: 100%;
  min-height: 520px;
  margin: 0;
  padding: 104px max(20px, calc((100vw - 1180px) / 2)) 88px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(18, 15, 11, 0.94) 0%, rgba(18, 15, 11, 0.82) 48%, rgba(18, 15, 11, 0.44) 100%),
    url("assets/wizualizacje/tlo-kontakt.jpg") center / cover no-repeat;
}

.page-hero--faq {
  width: 100%;
  min-height: 520px;
  margin: 0;
  padding: 104px max(20px, calc((100vw - 1180px) / 2)) 88px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(18, 15, 11, 0.95) 0%, rgba(18, 15, 11, 0.82) 48%, rgba(18, 15, 11, 0.42) 100%),
    url("assets/wizualizacje/tlo-faq.jpg") center / cover no-repeat;
}

.page-hero--about {
  width: 100%;
  min-height: 520px;
  margin: 0;
  padding: 104px max(20px, calc((100vw - 1180px) / 2)) 88px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(18, 15, 11, 0.95) 0%, rgba(18, 15, 11, 0.8) 48%, rgba(18, 15, 11, 0.38) 100%),
    url("assets/wizualizacje/tlo-o-nas.jpg") center / cover no-repeat;
}

.page-hero .lead {
  color: #5e574c;
}

.page-hero--technology .eyebrow,
.page-hero--contact .eyebrow,
.page-hero--faq .eyebrow,
.page-hero--about .eyebrow {
  color: #ead99a;
  background: rgba(23, 21, 18, 0.58);
  border-color: rgba(215, 200, 142, 0.58);
  backdrop-filter: blur(16px);
}

.page-hero.page-hero--technology h1,
.page-hero.page-hero--contact h1,
.page-hero.page-hero--faq h1,
.page-hero.page-hero--about h1 {
  color: #fffaf1;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.58);
}

.page-hero.page-hero--technology .lead,
.page-hero.page-hero--contact .lead,
.page-hero.page-hero--faq .lead,
.page-hero.page-hero--about .lead {
  color: #eadfd1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.page-hero.page-hero--technology .fine-print {
  color: #d8cbb7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.fine-print {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section--tight .fine-print,
.faq-category .fine-print {
  margin-top: 18px;
}

.page-hero h1 {
  color: var(--ink);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions--dark {
  margin-top: 24px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(222, 214, 196, 0.82);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 20px 60px rgba(24, 20, 14, 0.16);
}

.metric {
  min-height: 116px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: #a1773d;
  font-size: 28px;
  font-weight: 950;
}

.metric strong {
  display: block;
  color: #3c352d;
  font-size: 15px;
  line-height: 1.35;
}

.section {
  padding: 92px 0;
}

.section--tight {
  padding-top: 54px;
}

.legal-page {
  display: grid;
  gap: 26px;
  max-width: 920px;
}

.legal-page article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.legal-page h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.66;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.section--parameter-strip {
  position: relative;
  z-index: 3;
  margin-top: -74px;
  padding: 0 0 38px;
}

.section--dark {
  width: 100%;
  margin: 0;
  padding: 88px max(20px, calc((100vw - 1180px) / 2));
  color: var(--paper);
  background: var(--charcoal);
}

.section--dark .section-kicker {
  background: rgba(215, 200, 142, 0.12);
  color: #e7d597;
}

.section--dark p,
.section--dark .process-list span {
  color: #d6cec0;
}

.section--soft {
  width: 100%;
  margin: 0;
  padding: 92px max(20px, calc((100vw - 1180px) / 2));
  background: #efe7d7;
}

.section__heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section__heading--sub {
  margin-top: 34px;
  margin-bottom: 22px;
}

.section__heading--sub h2 {
  max-width: 780px;
  font-size: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

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

.feature-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.feature-card p,
.text-block p,
.cta-section p,
.contact-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.split--wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
}

.split + .feature-grid {
  margin-top: 34px;
}

.section--bestseller {
  padding-top: 84px;
}

.bestseller-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 22px;
  align-items: start;
}

.house-gallery {
  display: grid;
  gap: 12px;
}

.house-gallery__main {
  position: relative;
  min-height: 540px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.house-gallery__main img,
.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 248, 235, 0.62);
  border-radius: 50%;
  background: rgba(185, 137, 72, 0.9);
  color: #fff8eb;
  box-shadow: 0 12px 32px rgba(18, 15, 11, 0.26);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.gallery-arrow--prev {
  left: 18px;
}

.gallery-arrow--next {
  right: 18px;
}

.gallery-arrow span {
  display: block;
  margin-top: -2px;
  font-size: 38px;
  font-weight: 650;
  line-height: 0.7;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  border-color: rgba(255, 248, 235, 0.86);
  background: #c18b4e;
  outline: 0;
  transform: translateY(-50%) scale(1.04);
}

.house-gallery__main figcaption {
  position: absolute;
  left: 22px;
  right: auto;
  bottom: 22px;
  width: min(430px, calc(100% - 44px));
  padding: 11px 13px;
  border: 1px solid rgba(239, 225, 194, 0.26);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(23, 21, 18, 0.52), rgba(23, 21, 18, 0.28));
  color: #fff8eb;
  backdrop-filter: blur(4px);
}

.house-gallery__main strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 950;
}

.house-gallery__main span {
  display: block;
  color: #eadfd1;
  font-size: 13px;
  line-height: 1.38;
}

.house-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 92px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  cursor: pointer;
  opacity: 0.82;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.is-active {
  border-color: rgba(185, 137, 72, 0.88);
  box-shadow: 0 0 0 3px rgba(185, 137, 72, 0.18);
  opacity: 1;
  outline: 0;
}

.gallery-thumb.is-active {
  transform: translateY(-2px);
}

.house-offer-card {
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(24, 20, 14, 0.1);
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 18px;
  padding: 0 11px;
  border: 1px solid rgba(193, 139, 78, 0.5);
  border-radius: 6px;
  background: #f2e7d1;
  color: #9b733d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.house-offer-card h3 {
  max-width: 520px;
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.08;
}

.house-offer-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.house-stats {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.house-stats div {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid #e1d5bd;
  border-radius: 8px;
  background: #f7efe1;
}

.house-stats dt {
  color: #6d6253;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.house-stats dd {
  margin: 0;
  color: #8d6a36;
  font-size: 28px;
  font-weight: 950;
  white-space: nowrap;
}

.house-highlights {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.house-highlights li {
  position: relative;
  padding-left: 22px;
  color: #4b4438;
  font-size: 15px;
  line-height: 1.5;
}

.house-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b98948;
}

.project-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.project-options article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.project-options span {
  display: block;
  margin-bottom: 12px;
  color: #9b733d;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.project-options h3 {
  max-width: 560px;
  margin-bottom: 10px;
}

.project-options p {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.visual-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.visual-hero,
.visual-tile,
.media-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.visual-hero {
  position: relative;
  min-height: 470px;
}

.visual-hero img,
.visual-tile img,
.media-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  max-width: 560px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 225, 194, 0.32);
  border-radius: 8px;
  background: rgba(23, 21, 18, 0.72);
  color: #fff8eb;
  backdrop-filter: blur(8px);
}

.visual-caption strong,
.visual-tile strong,
.media-figure strong {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  font-weight: 950;
}

.visual-caption span,
.visual-tile span,
.media-figure span {
  display: block;
  color: inherit;
  font-size: 14px;
  line-height: 1.48;
  opacity: 0.86;
}

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

.visual-tile img {
  aspect-ratio: 16 / 10;
  height: auto;
}

.visual-tile figcaption,
.media-figure figcaption {
  padding: 15px 16px 17px;
  color: var(--ink);
}

.visual-tile span,
.media-figure span {
  color: var(--muted);
}

.media-figure {
  margin: 0;
}

.media-figure img {
  min-height: 320px;
}

.media-figure--wide img {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.media-figure--wide {
  max-width: 980px;
  margin-bottom: 24px;
}

.media-figure--tall img {
  min-height: 430px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

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

.scope-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

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

.scope-column {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.scope-column .section-kicker {
  margin-bottom: 16px;
}

.scope-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.52;
}

.scope-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--timber);
}

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

.timeline-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid rgba(214, 202, 180, 0.9);
  border-radius: 8px;
  background: #fffdf8;
}

.timeline-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--timber);
  color: #fffaf0;
  font-weight: 900;
}

.timeline-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: 110px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.faq-aside p:not(.section-kicker) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.faq-aside .button {
  margin-top: 22px;
}

.faq-sections {
  display: grid;
  gap: 64px;
}

.faq-category .section__heading {
  margin-bottom: 22px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  list-style-position: outside;
}

.faq-item p {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding: 20px 0 20px 28px;
  border-left: 3px solid var(--timber);
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.cta-section h2 {
  margin-bottom: 10px;
}

.parameter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.parameter-strip--hero {
  border-color: rgba(222, 214, 196, 0.86);
  box-shadow: 0 24px 70px rgba(24, 20, 14, 0.18);
}

.parameter-strip--foundation {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}

.parameter-strip div {
  min-height: 150px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.parameter-strip div:last-child {
  border-right: 0;
}

.parameter-strip span {
  display: block;
  margin-bottom: 8px;
  color: #a1773d;
  font-size: 15px;
  font-weight: 950;
}

.parameter-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.1;
}

.parameter-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.layer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.layer-list article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.layer-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: #efe0bd;
  color: #8f6b34;
  font-size: 14px;
  font-weight: 950;
}

.layer-list p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.tech-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.tech-table-wrap--spaced {
  margin-top: 28px;
}

.tech-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.tech-table th,
.tech-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.5;
}

.tech-table th {
  background: #efe7d7;
  color: #3c352d;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.tech-table tr:last-child td {
  border-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 22px;
  align-items: start;
}

.contact-panel,
.form-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.contact-row {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-row span,
.contact-row strong {
  display: block;
}

.contact-row span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-row strong {
  color: #8d6a36;
  font-size: 24px;
}

.offer-steps {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.offer-steps span {
  display: block;
  padding: 12px 14px;
  border: 1px solid #e1d5bd;
  border-radius: 6px;
  background: #f5ecdc;
  color: #4b4438;
  font-size: 14px;
  font-weight: 850;
}

.hubspot-form {
  min-height: 360px;
}

.form-panel__intro {
  margin: -4px 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.fallback-form {
  display: grid;
  gap: 15px;
}

.fallback-form label {
  display: grid;
  gap: 8px;
  color: #4b4438;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.fallback-form input,
.fallback-form textarea,
.fallback-form select {
  width: 100%;
  border: 1px solid #d8ccb4;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.fallback-form input,
.fallback-form select {
  min-height: 48px;
  padding: 0 14px;
}

.fallback-form textarea {
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
}

.fallback-form button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.hubspot-form .hs-form,
.hubspot-form .budant-hs-form {
  display: grid;
  gap: 15px;
}

.hubspot-form .hs-form-field {
  display: grid;
  gap: 8px;
}

.hubspot-form label,
.hubspot-form .hs-form-field > label {
  color: #4b4438;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hubspot-form .hs-form-required {
  color: #a06631;
}

.hubspot-form .hs-input,
.hubspot-form input,
.hubspot-form select,
.hubspot-form textarea {
  width: 100% !important;
  border: 1px solid #d8ccb4;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.hubspot-form input,
.hubspot-form select {
  min-height: 48px;
  padding: 0 14px;
}

.hubspot-form textarea {
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
}

.hubspot-form .hs-error-msgs {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.hubspot-form .hs-error-msg {
  color: #9a3f2e;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.hubspot-form .hs-submit {
  margin-top: 4px;
}

.hubspot-form .hs-button,
.hubspot-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content !important;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(193, 139, 78, 0.55);
  border-radius: 6px;
  background: #b98948;
  color: #fffaf1;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.hubspot-form .submitted-message,
.hubspot-consent-panel,
.hubspot-error-panel {
  padding: 22px;
  border: 1px solid #e1d5bd;
  border-radius: 8px;
  background: #f5ecdc;
}

.hubspot-form .submitted-message,
.hubspot-consent-panel p,
.hubspot-error-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hubspot-consent-panel h3,
.hubspot-error-panel h3 {
  color: var(--ink);
}

.cookie-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(560px, calc(100vw - 36px));
  pointer-events: none;
}

.cookie-consent,
.cookie-modal__panel,
.cookie-manage {
  pointer-events: auto;
}

.cookie-consent {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(222, 214, 196, 0.95);
  border-radius: 8px;
  background: rgba(251, 248, 241, 0.98);
  box-shadow: 0 24px 70px rgba(23, 21, 18, 0.22);
}

.cookie-consent__kicker {
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 9px;
  border: 1px solid rgba(193, 139, 78, 0.4);
  border-radius: 6px;
  background: #f2e7d1;
  color: #8b6632;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cookie-consent h2,
.cookie-modal h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.cookie-consent p,
.cookie-modal p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.56;
}

.cookie-consent__actions,
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-button,
.cookie-icon-button,
.cookie-manage {
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cookie-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
}

.cookie-button--primary {
  border-color: rgba(193, 139, 78, 0.62);
  background: #b98948;
  color: #fffaf1;
}

.cookie-button--dark {
  background: var(--charcoal);
  color: var(--paper);
}

.cookie-button--light,
.cookie-button--outline {
  border-color: var(--line);
  background: #fffdf8;
  color: #3d372e;
}

.cookie-button--outline {
  background: transparent;
}

.cookie-manage {
  margin-left: auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(222, 214, 196, 0.9);
  background: rgba(251, 248, 241, 0.92);
  color: #4d473c;
  box-shadow: 0 12px 30px rgba(23, 21, 18, 0.12);
  font-size: 12px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 21, 18, 0.54);
  backdrop-filter: blur(10px);
}

.cookie-modal__panel {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(222, 214, 196, 0.95);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.cookie-modal__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.cookie-icon-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: #4d473c;
}

.cookie-modal__form {
  display: grid;
  gap: 12px;
}

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.cookie-category__copy {
  display: grid;
  gap: 6px;
}

.cookie-category__copy strong {
  color: var(--ink);
  font-size: 16px;
}

.cookie-category__copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
}

.cookie-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cookie-toggle__track {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  border: 1px solid #cfc3ad;
  border-radius: 999px;
  background: #e7dcc9;
}

.cookie-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 2px 6px rgba(23, 21, 18, 0.18);
  transition: transform 0.18s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  border-color: rgba(193, 139, 78, 0.7);
  background: #b98948;
}

.cookie-toggle input:checked + .cookie-toggle__track::after {
  transform: translateX(22px);
}

.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 3px solid rgba(193, 139, 78, 0.32);
  outline-offset: 3px;
}

.cookie-toggle input:disabled + .cookie-toggle__track {
  opacity: 0.72;
}

.cookie-modal__actions {
  margin-top: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: #5f574c;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer strong {
  color: #8d6a36;
}

.site-footer a {
  font-weight: 850;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-contact {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 34px;
  }

  .feature-grid,
  .feature-grid--three,
  .project-options,
  .visual-showcase,
  .media-grid,
  .media-grid--three,
  .parameter-strip,
  .layer-list,
  .scope-compare,
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-hero {
    min-height: 430px;
  }

  .section--parameter-strip {
    margin-top: -62px;
    padding-bottom: 34px;
  }

  .parameter-strip div {
    border-bottom: 1px solid var(--line);
  }

  .parameter-strip div:nth-child(2n) {
    border-right: 0;
  }

  .parameter-strip div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .metric-band {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .split,
  .split--wide,
  .bestseller-layout,
  .contact-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .house-gallery__main {
    min-height: 470px;
  }

  .faq-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand__icon {
    width: 48px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 13px;
  }

  .header-contact a,
  .button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 620px;
  }

  .hero--home {
    background:
      linear-gradient(180deg, rgba(18, 15, 11, 0.74), rgba(18, 15, 11, 0.95)),
      url("assets/wizualizacje/tlo-strona-glowna.jpg") center / cover no-repeat;
  }

  .page-hero--technology {
    min-height: 560px;
    padding: 72px 14px 74px;
    background:
      linear-gradient(180deg, rgba(18, 15, 11, 0.88), rgba(18, 15, 11, 0.96)),
      url("assets/wizualizacje/moduly-hala.jpg") center / cover no-repeat;
  }

  .page-hero--contact {
    min-height: 560px;
    padding: 72px 14px 74px;
    background:
      linear-gradient(180deg, rgba(18, 15, 11, 0.82), rgba(18, 15, 11, 0.96)),
      url("assets/wizualizacje/tlo-kontakt.jpg") center / cover no-repeat;
  }

  .page-hero--faq {
    min-height: 560px;
    padding: 72px 14px 74px;
    background:
      linear-gradient(180deg, rgba(18, 15, 11, 0.84), rgba(18, 15, 11, 0.96)),
      url("assets/wizualizacje/tlo-faq.jpg") center / cover no-repeat;
  }

  .page-hero--about {
    min-height: 560px;
    padding: 72px 14px 74px;
    background:
      linear-gradient(180deg, rgba(18, 15, 11, 0.82), rgba(18, 15, 11, 0.96)),
      url("assets/wizualizacje/tlo-o-nas.jpg") center / cover no-repeat;
  }

  .hero__inner {
    min-height: 620px;
    padding: 58px 0 78px;
  }

  .hero__inner,
  .page-hero,
  .section,
  .cta-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .page-hero--technology,
  .page-hero--contact,
  .page-hero--faq,
  .page-hero--about {
    width: 100%;
  }

  h1 {
    font-size: 40px;
    line-height: 1.03;
  }

  h2 {
    font-size: 29px;
  }

  .lead {
    font-size: 18px;
  }

  .metric-band {
    width: min(100% - 28px, 1180px);
    margin-top: -34px;
  }

  .section--parameter-strip {
    margin-top: -44px;
    padding-bottom: 28px;
  }

  .feature-grid,
  .feature-grid--three,
  .project-options,
  .visual-showcase,
  .visual-side,
  .media-grid,
  .media-grid--three,
  .parameter-strip,
  .layer-list,
  .scope-compare,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .visual-hero {
    min-height: 470px;
  }

  .house-gallery__main {
    min-height: 380px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .gallery-arrow--prev {
    left: 12px;
  }

  .gallery-arrow--next {
    right: 12px;
  }

  .gallery-arrow span {
    font-size: 32px;
  }

  .house-gallery__main figcaption {
    left: 14px;
    right: auto;
    bottom: 14px;
    width: min(360px, calc(100% - 28px));
    padding: 10px 12px;
  }

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

  .gallery-thumb {
    min-height: 96px;
  }

  .house-offer-card {
    padding: 22px;
  }

  .house-offer-card h3 {
    font-size: 26px;
  }

  .house-stats div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .visual-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .media-figure img,
  .media-figure--wide img,
  .media-figure--tall img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .scope-column,
  .timeline-grid article,
  .faq-aside,
  .faq-item summary,
  .faq-item p {
    padding-left: 18px;
    padding-right: 18px;
  }

  .parameter-strip div,
  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .parameter-strip div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .parameter-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .section--dark,
  .section--soft {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .cta-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-root {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }

  .cookie-consent,
  .cookie-modal__panel {
    padding: 20px;
  }

  .cookie-consent__actions,
  .cookie-modal__actions {
    justify-content: stretch;
  }

  .cookie-button {
    width: 100%;
  }

  .hubspot-form .hs-button,
  .hubspot-form input[type="submit"] {
    width: 100% !important;
  }

  .cookie-modal {
    padding: 14px;
  }

  .cookie-modal__header,
  .cookie-category {
    grid-template-columns: 1fr;
  }

  .cookie-icon-button {
    width: fit-content;
  }

  .cookie-manage {
    margin-left: 0;
  }
}
