:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --cream: #f4eee6;
  --cream-2: #ede4d9;
  --ink: #1f1f1d;
  --text: #34312d;
  --muted: #706a62;
  --line: rgba(31, 31, 29, 0.12);
  --gold: #b9935a;
  --gold-dark: #8a6635;
  --dark: #151512;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 80px rgba(31, 31, 29, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.section-padding {
  padding: clamp(76px, 9vw, 124px) 0;
}

.compact-top {
  padding-top: clamp(44px, 7vw, 82px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(251, 248, 243, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: clamp(190px, 20vw, 260px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 1px;
  margin: 5px auto;
  background: var(--paper);
}

.hero {
  padding-top: 84px;
  background: linear-gradient(180deg, #fbf8f3 0%, #f1e9de 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 7vw, 86px);
}

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

.hero-brand {
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 780px;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.96;
}

.hero-copy h2 {
  margin-top: 18px;
  color: var(--gold-dark);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.02;
}

.hero-copy p:not(.hero-brand):not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 0;
  color: #4a443d;
  font-size: clamp(18px, 2vw, 22px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  border-color: rgba(31, 31, 29, 0.24);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.hero-image {
  margin: 0;
  border: 1px solid rgba(31, 31, 29, 0.12);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: min(690px, 72svh);
  object-fit: cover;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.about {
  background: var(--paper);
}

.image-block {
  margin: 0;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.image-block img {
  width: 100%;
  height: clamp(440px, 57vw, 660px);
  object-fit: cover;
}

.copy-block h2,
.section-title-row h2,
.section-heading-centered h2 {
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.02;
}

.copy-block p,
.section-heading-centered p,
.section-title-row p,
.service-card p,
.feature-cards p,
.testimonials-grid p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
}

.copy-block p:first-of-type {
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-dark);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.portfolio-preview {
  background: var(--bg);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-title-row > div {
  max-width: 850px;
}

.terra-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--cream-2);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: contrast(1.04) saturate(0.96);
}

.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.why {
  background: var(--paper);
}

.why-grid {
  align-items: start;
}

.large-image img {
  height: clamp(460px, 55vw, 760px);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 5vw, 56px);
}

.feature-cards article {
  min-height: 260px;
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--line);
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.offer {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
}

.section-heading-centered {
  max-width: 930px;
  text-align: center;
}

.section-heading-centered p:last-child {
  max-width: 700px;
  margin: 22px auto 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(42px, 6vw, 76px);
}

.service-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  align-items: stretch;
  min-height: 300px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(31, 31, 29, 0.07);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 10px 14px 0;
}

.quote-section {
  background: var(--dark);
  color: var(--paper);
}

.quote-wrap {
  max-width: 980px;
}

.quote-wrap .section-kicker {
  color: var(--gold);
}

.quote-wrap blockquote {
  margin: 0;
}

.quote-wrap p {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.quote-wrap cite {
  display: inline-block;
  margin-top: 26px;
  color: var(--gold);
  font-style: normal;
}

.testimonials {
  background: var(--bg);
}

.rating-card {
  min-width: 160px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.rating-card span {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: 1;
}

.rating-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.testimonials-grid article {
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(31, 31, 29, 0.06);
}

.testimonials-grid article:nth-child(1) {
  background: var(--ink);
}

.testimonials-grid article:nth-child(1) p {
  color: var(--paper);
}

.testimonials-grid article:nth-child(1) strong {
  color: var(--gold);
}

.testimonials-grid p {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.26;
}

.testimonials-grid strong {
  color: var(--gold-dark);
}

.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 118px;
}

.contact-copy h2 {
  font-size: clamp(38px, 5vw, 74px);
}

.contact-box {
  display: grid;
  gap: 6px;
  margin-top: 34px;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.contact-box span {
  color: var(--muted);
}

.contact-box a {
  color: var(--gold-dark);
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #5d564e;
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 31, 29, 0.16);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  padding: 15px 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 147, 90, 0.16);
}

.full-field,
.full-button,
.form-note {
  grid-column: 1 / -1;
}

.full-button {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer {
  padding: 42px 0;
  background: #11110f;
  color: var(--paper);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand img {
  width: 240px;
}

.footer-brand p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.site-footer a {
  color: var(--gold);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(9, 9, 8, 0.93);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1180px, 96vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

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

  .image-block img,
  .hero-image img {
    height: auto;
    max-height: none;
  }

  .feature-cards,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    min-height: 74px;
    padding: 10px 18px;
  }

  .brand img {
    width: 188px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(251, 248, 243, 0.99);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(31, 31, 29, 0.14);
  }

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

  .main-nav a {
    padding: 14px 12px;
  }

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

  .hero {
    padding-top: 74px;
  }

  .hero-grid {
    padding-top: 46px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .desktop-only {
    display: none;
  }

  .terra-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  h1 {
    font-size: clamp(42px, 14vw, 66px);
  }

  .hero-copy h2,
  .copy-block h2,
  .section-title-row h2,
  .section-heading-centered h2,
  .contact-copy h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-copy p:not(.hero-brand):not(.eyebrow) {
    font-size: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .terra-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.big,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-cards article,
  .testimonials-grid article {
    padding: 26px;
  }

  .service-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-card img {
    height: 250px;
  }

  .service-card div {
    padding: 0 4px 8px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v4 compact: mniejsza skala strony + slider zamiast ciężkiej siatki zdjęć */
:root {
  --shadow: 0 14px 46px rgba(31, 31, 29, 0.08);
}

html {
  scroll-padding-top: 72px;
}

body {
  font-size: 15px;
  line-height: 1.55;
}

.container {
  width: min(1100px, calc(100% - 36px));
}

.section-padding {
  padding: clamp(52px, 7vw, 86px) 0;
}

.compact-top {
  padding-top: clamp(36px, 5vw, 60px);
}

.site-header {
  min-height: 66px;
  padding: 9px clamp(18px, 4vw, 46px);
}

.brand {
  min-width: 160px;
}

.brand img {
  width: clamp(160px, 16vw, 205px);
}

.main-nav {
  gap: clamp(15px, 2vw, 26px);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.nav-cta {
  padding: 9px 15px;
}

.nav-toggle {
  width: 38px;
  height: 38px;
}

.hero {
  padding-top: 66px;
}

.hero-grid {
  gap: clamp(28px, 5vw, 58px);
  min-height: calc(100svh - 66px);
  padding: clamp(38px, 6vw, 74px) 0 clamp(34px, 5vw, 60px);
}

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

.hero-brand {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 42px);
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
}

h1 {
  max-width: 640px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.hero-copy h2 {
  margin-top: 12px;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.08;
}

.hero-copy p:not(.hero-brand):not(.eyebrow) {
  max-width: 520px;
  margin-top: 18px;
  font-size: clamp(15px, 1.45vw, 17px);
}

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

.btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 12px;
}

.hero-image img {
  height: min(540px, 64svh);
}

.two-col {
  gap: clamp(32px, 6vw, 70px);
}

.image-block img {
  height: clamp(340px, 45vw, 520px);
}

.large-image img {
  height: clamp(360px, 48vw, 590px);
}

.copy-block h2,
.section-title-row h2,
.section-heading-centered h2,
.contact-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.copy-block p,
.section-heading-centered p,
.section-title-row p,
.service-card p,
.feature-cards p,
.testimonials-grid p,
.contact-copy p {
  font-size: 15px;
}

.copy-block p:first-of-type {
  margin-top: 20px;
}

.section-title-row {
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.section-title-row > div {
  max-width: 720px;
}

.project-slider {
  position: relative;
}

.slider-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.slides-track {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.45s ease;
}

.project-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream-2);
  cursor: zoom-in;
  overflow: hidden;
}

.project-slide img {
  width: 100%;
  height: clamp(430px, 60vw, 650px);
  object-fit: cover;
}

.project-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(10, 10, 8, 0.58));
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 2;
  max-width: min(520px, calc(100% - 110px));
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.05;
  text-align: left;
  letter-spacing: -0.035em;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(20, 20, 18, 0.55);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.slide-arrow:hover {
  background: rgba(20, 20, 18, 0.82);
  transform: translateY(-50%) scale(1.03);
}

.slide-arrow-prev {
  left: 16px;
}

.slide-arrow-next {
  right: 16px;
}

.slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
}

.slider-count {
  display: flex;
  gap: 5px;
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1;
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dots button {
  width: 28px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(31, 31, 29, 0.22);
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}

.slider-dots button.is-active {
  width: 46px;
  background: var(--gold-dark);
}

.feature-cards {
  gap: 14px;
  margin-top: clamp(24px, 4vw, 42px);
}

.feature-cards article {
  min-height: 200px;
  padding: 24px;
}

h3 {
  font-size: 18px;
  line-height: 1.18;
}

.service-list {
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}

.service-card {
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 0.62fr);
  gap: 20px;
  min-height: 230px;
  padding: 14px;
}

.service-card div {
  padding: 8px 8px 8px 0;
}

.quote-wrap {
  max-width: 820px;
}

.quote-wrap p {
  font-size: clamp(30px, 5vw, 54px);
}

.quote-wrap cite {
  margin-top: 18px;
}

.rating-card {
  min-width: 128px;
  padding: 18px;
}

.rating-card span {
  font-size: 40px;
}

.rating-card p {
  font-size: 11px;
}

.testimonials-grid {
  gap: 14px;
}

.testimonials-grid article {
  padding: 24px;
}

.testimonials-grid p {
  font-size: 19px;
  line-height: 1.28;
}

.contact-grid {
  gap: clamp(32px, 6vw, 68px);
}

.contact-copy {
  top: 92px;
}

.contact-box {
  margin-top: 24px;
  padding: 22px;
}

.lead-form {
  gap: 13px;
  padding: clamp(18px, 2.6vw, 26px);
}

.lead-form label {
  gap: 6px;
  font-size: 12px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  padding: 12px 13px;
  font-size: 14px;
}

.site-footer {
  padding: 32px 0;
}

.footer-brand img {
  width: 190px;
}

.footer-brand p {
  font-size: 13px;
}

.lightbox-close {
  width: 42px;
  height: 42px;
  font-size: 28px;
}

@media (max-width: 1100px) {
  .hero-grid {
    min-height: auto;
  }

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

  .project-slide img {
    height: clamp(360px, 58vw, 560px);
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 66px;
  }

  .site-header {
    min-height: 62px;
    padding: 8px 16px;
  }

  .brand img {
    width: 160px;
  }

  .main-nav {
    padding: 8px 16px 14px;
    font-size: 12px;
  }

  .main-nav a {
    padding: 11px 10px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid {
    padding-top: 34px;
  }

  .project-slide img {
    height: clamp(330px, 66vw, 520px);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 26px, 1100px);
  }

  .section-padding {
    padding: 44px 0;
  }

  h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-copy h2,
  .copy-block h2,
  .section-title-row h2,
  .section-heading-centered h2,
  .contact-copy h2 {
    font-size: clamp(27px, 8.5vw, 38px);
  }

  .hero-copy p:not(.hero-brand):not(.eyebrow) {
    font-size: 15px;
  }

  .copy-block p,
  .section-heading-centered p,
  .section-title-row p,
  .service-card p,
  .feature-cards p,
  .testimonials-grid p,
  .contact-copy p {
    font-size: 14px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .project-slide img {
    height: 360px;
  }

  .slide-caption {
    max-width: calc(100% - 44px);
    font-size: 23px;
  }

  .slide-arrow {
    top: auto;
    bottom: 14px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    transform: none;
  }

  .slide-arrow:hover {
    transform: scale(1.03);
  }

  .slide-arrow-prev {
    left: auto;
    right: 58px;
  }

  .slide-arrow-next {
    right: 14px;
  }

  .slider-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .slider-dots {
    width: 100%;
  }

  .slider-dots button {
    flex: 1;
    width: auto;
  }

  .slider-dots button.is-active {
    flex: 1.8;
    width: auto;
  }

  .feature-cards article,
  .testimonials-grid article {
    padding: 20px;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card img {
    height: 210px;
  }
}


/* v5 poprawki po feedbacku: spójniejsza typografia, brak łamania słów, czytelniejszy hero, portfolio jako slider */
h1,
h2,
h3,
p,
a,
span,
strong,
blockquote,
label,
button {
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2 {
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand img {
  width: clamp(142px, 13vw, 178px);
}

.main-nav {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-cta {
  padding: 8px 14px;
}

.hero {
  padding-top: 62px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: auto;
  padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 64px);
}

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

.hero-brand {
  display: none;
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

h1 {
  max-width: 650px;
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1.08;
}

.hero-copy h2 {
  max-width: 540px;
  margin-top: 12px;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.014em;
}

.hero-copy p:not(.hero-brand):not(.eyebrow) {
  max-width: 530px;
  margin-top: 16px;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.65;
}

.btn {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-padding {
  padding: clamp(46px, 6vw, 78px) 0;
}

.compact-top {
  padding-top: clamp(34px, 5vw, 56px);
}

.two-col,
.contact-grid {
  gap: clamp(30px, 5vw, 64px);
}

.copy-block h2,
.section-title-row h2,
.section-heading-centered h2,
.contact-copy h2 {
  max-width: 760px;
  font-size: clamp(28px, 3.15vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.contact-copy h2 {
  max-width: 520px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.13;
}

.copy-block p,
.section-heading-centered p,
.section-title-row p,
.service-card p,
.feature-cards p,
.testimonials-grid p,
.contact-copy p {
  font-size: 14px;
  line-height: 1.72;
}

.copy-block p:first-of-type {
  margin-top: 18px;
}

.section-title-row {
  align-items: flex-end;
  gap: 22px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.section-title-row > div {
  max-width: 780px;
}

.project-slider {
  max-width: 1060px;
  margin: 0 auto;
}

.slider-frame {
  aspect-ratio: 16 / 9;
}

.slides-track,
.project-slide {
  height: 100%;
}

.project-slide img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.slide-caption {
  max-width: min(500px, calc(100% - 120px));
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.slide-arrow {
  width: 38px;
  height: 38px;
  font-size: 25px;
}

.slider-count {
  font-size: 16px;
}

.slider-dots button {
  width: 24px;
}

.slider-dots button.is-active {
  width: 40px;
}

.feature-cards article {
  min-height: 180px;
  padding: 22px;
}

h3 {
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.service-card {
  min-height: 210px;
}

.testimonials-grid p {
  font-size: 17px;
  line-height: 1.42;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.contact-copy {
  top: 86px;
}

.contact-copy p {
  max-width: 520px;
}

.contact-box {
  margin-top: 22px;
  padding: 20px;
  font-size: 14px;
}

.lead-form {
  padding: clamp(17px, 2.2vw, 24px);
}

.lead-form label {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  padding: 11px 12px;
  font-size: 13px;
}

.footer-brand img {
  width: 168px;
}

/* Sekcja cytatu została usunięta z HTML, zostawiamy regułę bezpieczeństwa na wypadek starego cache. */
.quote-section {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .contact-copy h2,
  .contact-copy p {
    max-width: 720px;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 58px;
  }

  .brand img {
    width: 142px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid {
    padding-top: 32px;
  }

  h1 {
    font-size: clamp(32px, 7vw, 46px);
  }

  .copy-block h2,
  .section-title-row h2,
  .section-heading-centered h2,
  .contact-copy h2 {
    font-size: clamp(26px, 6vw, 38px);
  }

  .project-slider {
    max-width: 100%;
  }

  .slider-frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1100px);
  }

  .section-padding {
    padding: 40px 0;
  }

  h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.1;
  }

  .hero-copy h2,
  .copy-block h2,
  .section-title-row h2,
  .section-heading-centered h2,
  .contact-copy h2 {
    font-size: clamp(25px, 7.6vw, 34px);
    line-height: 1.14;
  }

  .hero-copy p:not(.hero-brand):not(.eyebrow),
  .copy-block p,
  .section-heading-centered p,
  .section-title-row p,
  .service-card p,
  .feature-cards p,
  .testimonials-grid p,
  .contact-copy p {
    font-size: 13.5px;
  }

  .slider-frame {
    aspect-ratio: 3 / 4;
  }

  .slide-caption {
    max-width: calc(100% - 32px);
    font-size: 20px;
  }

  .slide-arrow {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

/* v6: korekta logo, typografii, sekcji o nas i odstępów */
.site-header {
  justify-content: center;
  padding-inline: clamp(18px, 4vw, 54px);
}

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

.main-nav {
  width: min(980px, 100%);
  justify-content: center;
  gap: clamp(18px, 3.2vw, 42px);
}

.nav-toggle {
  position: absolute;
  right: 18px;
}

h1,
h2,
h3 {
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.eyebrow,
.section-kicker {
  letter-spacing: 0.11em;
}

.hero-copy h1,
h1 {
  max-width: 760px;
  font-size: clamp(34px, 3.75vw, 54px);
  line-height: 1.12;
}

.hero-copy h2 {
  max-width: 620px;
  font-size: clamp(21px, 2.2vw, 31px);
  line-height: 1.18;
}

.copy-block h2,
.section-title-row h2,
.section-heading-centered h2,
.contact-copy h2 {
  max-width: 720px;
  font-size: clamp(27px, 2.8vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.012em;
}

.section-title-row p,
.section-heading-centered p,
.copy-block p,
.service-card p,
.feature-cards p,
.testimonials-grid p,
.contact-copy p {
  font-size: 14px;
  line-height: 1.72;
}

.section-heading-centered {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.section-heading-centered h2 {
  margin-inline: auto;
}

.section-heading-centered p:last-child {
  max-width: 640px;
  margin: 16px auto 0;
}

.portfolio-preview .section-title-row {
  justify-content: center;
  text-align: center;
}

.portfolio-preview .section-title-row > div {
  max-width: 760px;
}

.people-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-self: stretch;
}

.person-card {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.person-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.person-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2px;
  padding: 18px;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
}

.person-card strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.person-card span {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  line-height: 1.4;
}

.about-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.copy-block p:first-of-type {
  margin-top: 16px;
}

.text-link {
  margin-top: 12px;
}

.project-slider {
  max-width: 980px;
}

.slider-frame {
  aspect-ratio: 16 / 8.8;
}

.slide-caption {
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: -0.012em;
}

.service-list {
  margin-top: clamp(30px, 4.5vw, 54px);
}

.service-card {
  min-height: 190px;
}

.testimonials-grid p {
  font-size: 16px;
  line-height: 1.48;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.contact-copy h2 {
  max-width: 520px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.012em;
}

.contact-copy p {
  max-width: 500px;
  margin-top: 16px;
}

.footer-brand img {
  display: none !important;
}

.footer-brand p {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .site-header {
    justify-content: space-between;
  }

  .main-nav {
    width: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .people-photos {
    max-width: 760px;
  }

  .person-card {
    min-height: 470px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    justify-content: flex-start;
  }

  .brand-hidden {
    display: block !important;
    width: 1px;
    min-width: 1px;
  }

  .hero-copy h1,
  h1 {
    font-size: clamp(30px, 6.6vw, 44px);
    line-height: 1.14;
  }

  .copy-block h2,
  .section-title-row h2,
  .section-heading-centered h2,
  .contact-copy h2 {
    font-size: clamp(25px, 5.2vw, 36px);
    line-height: 1.16;
  }
}

@media (max-width: 680px) {
  .people-photos {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .person-card {
    min-height: 430px;
  }

  .hero-copy h1,
  h1 {
    font-size: clamp(29px, 8.4vw, 39px);
  }

  .copy-block h2,
  .section-title-row h2,
  .section-heading-centered h2,
  .contact-copy h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .slider-frame {
    aspect-ratio: 3 / 4;
  }
}

/* v10: portfolio bez kafelków, tylko czysty slider */
.project-slider-tabs {
  margin-top: 28px;
}

.project-slider-tabs .slider-frame {
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background: var(--ink);
}

.project-slider-tabs .project-slide img {
  height: 100%;
  object-fit: cover;
}

.project-slider-tabs .slide-caption {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  color: #fff;
  background: rgba(25, 24, 22, 0.76);
  backdrop-filter: blur(10px);
}

.project-slider-tabs .slide-caption strong,
.project-slider-tabs .slide-caption small {
  color: #fff;
  line-height: 1.1;
}

.project-slider-tabs .slide-caption strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.project-slider-tabs .slide-caption small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .project-slider-tabs .slider-frame {
    aspect-ratio: 4 / 3;
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .project-slider-tabs .slider-frame {
    aspect-ratio: 3 / 4;
    min-height: 420px;
  }

  .project-slider-tabs .slide-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}


/* v11: portfolio naprawione, bez kafelków i bez dużych podpisów na zdjęciu */
.terra-gallery,
.portfolio-tabs,
.project-tabs,
.project-cards,
[data-project-tabs],
[data-project-tab] {
  display: none !important;
}

.project-slider {
  max-width: 980px;
  margin: 28px auto 0;
}

.project-slider .slider-frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 29, 0.12);
  background: #111;
  box-shadow: 0 14px 46px rgba(31, 31, 29, 0.08);
}

.project-slider .slides-track,
.project-slider .project-slide {
  height: 100%;
}

.project-slider .project-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
  overflow: hidden;
}

.project-slider .project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-slider .project-slide::after {
  display: none !important;
  content: none !important;
}

.project-slider .slide-caption {
  display: none !important;
}

.project-slider .slider-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-top: 16px;
}

.slider-project-meta {
  min-width: 0;
  text-align: center;
  color: var(--ink);
}

.slider-project-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.slider-project-meta span {
  display: block;
  margin-top: 3px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-slider .slide-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(20,20,18,0.54);
  color: #fff;
  font-size: 25px;
}

.project-slider .slider-count {
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1;
}

.project-slider .slider-dots {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .project-slider .slider-frame {
    aspect-ratio: 4 / 3;
  }

  .project-slider .slider-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .project-slider .slider-count,
  .project-slider .slider-dots {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .project-slider .slider-frame {
    aspect-ratio: 3 / 4;
  }
}

/* v13: slider 9 projektów, kliknięcie w zdjęcie prowadzi do oryginalnego portfolio */
.project-slider .project-slide {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.project-slider .project-slide:focus-visible {
  outline: 3px solid rgba(147, 106, 55, 0.65);
  outline-offset: -6px;
}
