html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

body.home-page,
body.project-page {
  background: #f5f5f2;
  color: #1e293b;
}

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

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

/* ===== SHARED BUTTONS ===== */

.btn,
.project-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn {
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
}

.project-btn-primary {
  margin-top: 32px;
  padding: 12px 20px;
  border-radius: 8px;
  background: #c79b48;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #0f172a;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-dark {
  background: #0f172a;
  color: #fff;
}

.btn-dark:hover {
  background: #1e293b;
}

/* NAPRAWIONO: .btn-gold miało zduplikowany kolor tła (#b88d3c nadpisywane przez #c79b48) */
.btn-gold,
.project-btn-primary:hover {
  background: #b88d3c;
  color: #fff;
}

.btn-gold {
  margin-top: 32px;
}

.btn.small {
  padding: 12px 18px;
}

/* ===== SHARED LAYOUT HELPERS ===== */

.home-page .container,
.project-page .project-container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.project-page .project-container-narrow {
  width: min(1120px, calc(100% - 32px));
}

.home-page .site-header,
.project-page .project-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.home-page .header-inner,
.project-page .project-header-inner {
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.home-page .logo,
.project-page .project-logo {
  height: 44px;
  width: auto;
}

.main-nav,
.project-page .project-main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a,
.project-page .project-main-nav a,
.project-page .project-top-tabs a {
  font-size: 14px;
  font-weight: 500;
  color: #667085;
  transition: color 0.2s ease;
}

.home-page .main-nav a:hover,
.project-page .project-main-nav a:hover,
.project-page .project-top-tabs a:hover {
  color: #0f172a;
}

.home-page .site-footer,
.project-page .project-site-footer {
  border-top: 4px solid #c79b48;
  background: #13263b;
  color: #fff;
}

.home-page .footer-inner,
.project-page .project-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
}

.home-page .footer-logo,
.project-page .project-footer-logo {
  height: 40px;
  width: auto;
}

.home-page .footer-center,
.project-page .project-footer-center {
  display: flex;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.home-page .footer-center strong,
.project-page .project-footer-center strong {
  color: rgba(255, 255, 255, 0.9);
}

.home-page .footer-copy,
.project-page .project-footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* ===== HOMEPAGE ===== */

.home-page .section {
  padding-top: 48px;
}

.home-page .site-header {
  border-bottom: 1px solid #e7e2d8;
  background: rgba(245, 245, 242, 0.85);
}

.home-page .hero-section {
  padding-top: 24px;
  padding-bottom: 40px;
}

.home-page .hero-card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.22);
}

.home-page .hero-image,
.home-page .hero-overlay {
  position: absolute;
  inset: 0;
}

.home-page .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .hero-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
}

.home-page .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 540px;
  align-items: center;
  padding: 56px;
}

.home-page .hero-text {
  max-width: 640px;
}

.home-page .eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e2b86d;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
  margin: 0;
}

.home-page h1 {
  font-size: 32px;
  line-height: 1.6;
  font-weight: 600;
  color: #fff;
}

.home-page h2 {
  font-size: 56px;
  line-height: 1.06;
  font-weight: 600;
  color: #1e293b;
}

.home-page .hero-description {
  margin-top: 20px;
  max-width: 680px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.home-page .hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.home-page .section-heading {
  max-width: 760px;
}

.home-page .section-heading h2 {
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.home-page .section-heading p {
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.6;
  color: #64748b;
}

/* NAPRAWIONO: dodano zakres .home-page dla spójności z resztą selektorów */
.home-page .section-heading-full h2 {
  max-width: 100%;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.home-page .projects-grid,
.home-page .benefits-grid {
  display: grid;
  gap: 24px 20px;
}

.home-page .projects-grid {
  margin-top: 40px;
  grid-template-columns: repeat(3, 1fr);
}

.home-page .project-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease;
}

.home-page .project-card:hover {
  transform: translateY(-4px);
}

.home-page .project-image {
  width: 100%;
  aspect-ratio: 1.2 / 0.85;
  object-fit: cover;
}

.home-page .project-body {
  padding: 16px;
}

.home-page .project-top h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

.home-page .project-subtitle {
  margin-top: 4px;
  font-size: 16px;
  color: #64748b;
}

.home-page .project-specs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 15px;
  color: #64748b;
}

.home-page .project-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.home-page .price-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.home-page .price-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

.home-page .benefits-card {
  overflow: hidden;
  border-radius: 34px;
  align-items: center;
}

.home-page .benefits-visual {
  position: relative;
}

.home-page .benefits-visual::after {
  content: "";
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 20px;
  height: 24px;
  border-radius: 999px;
  background: rgba(212, 176, 108, 0.2);
  filter: blur(24px);
}

.home-page .benefits-house {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.home-page .benefits-content {
  border-radius: 0 0 34px 34px;
  background: #1e293b;
  padding: 48px 56px;
}

.home-page .benefits-content h2 {
  font-size: 24px;
  line-height: 1.15;
  color: #fff;
  text-align: center;
}

.home-page .benefits-grid {
  margin-top: 32px;
  grid-template-columns: repeat(3, 1fr);
}

.home-page .benefit-item {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.home-page .benefit-item h3 {
  font-size: 22px;
  font-weight: 600;
  color: #e9d7b6;
}

.home-page .benefit-item p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.home-page .about-grid {
  display: grid;
  gap: 64px;
  align-items: center;
  grid-template-columns: 1fr 0.85fr;
  padding-top: 24px;
  padding-bottom: 24px;
}

.home-page .about-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.home-page .about-item {
  padding-top: 24px;
  border-top: 1px solid #d8bc8a;
}

/* NAPRAWIONO: usunięto redundantną regułę :first-child z identyczną wartością */

.home-page .about-item h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

.home-page .about-item p {
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.8;
  color: #64748b;
}

.home-page .about-media {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

.home-page .about-bg {
  width: 100%;
  height: 520px;
  object-fit: cover;
  opacity: 0.75;
}

.home-page .about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 27, 43, 0.8), rgba(16, 32, 51, 0.35), transparent);
}

.home-page .about-logo-box {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
}

.home-page .about-logo {
  height: 112px;
  width: auto;
}

.home-page .steps-module h2 {
    font-size: 32px;
    line-height: 1.02;
    letter-spacing: -0.03em;

}

.contact-section {
  background-color: #13263b08;
  margin: 48px 0 48px 0;
  padding: 24px 0 48px 0;
}

.home-page .contact-card {
  overflow: hidden;
  border-radius: 30px;
  background: #f5f5f2;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.home-page .contact-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.home-page .contact-content {
  padding: 48px;
}

.home-page .contact-content .eyebrow {
  margin-bottom: 12px;
  font-size: 14px;
  color: #c79b48;
}

.home-page .contact-content h2 {
  font-size: 24px;
  line-height: 1.15;
}

.home-page .contact-description {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.8;
  color: #64748b;
}

.home-page .contact-boxes {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

/* NAPRAWIONO: przywrócono font-weight: 500 (było w pierwszej definicji, zginęło w duplikacie) */
.home-page .contact-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: #eeeeec;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.home-page .site-footer {
  margin-top: 96px;
}

/* ===== STEPS MODULE ===== */

.steps-module {
  padding: 120px 0 0;
  background: #f5f5f2;
}

.steps-module__container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.steps-module__title {
  margin: 0 0 48px;
  text-align: center;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  color: #8a6a36;
}

.steps-module__grid {
  margin: 80px 80px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps-card {
  position: relative;
  border: 1.5px solid #1e293bc9;
  border-radius: 24px;
  background: transparent;
  padding: 56px 28px 32px;
  min-height: 232px;
}

.steps-card__number {
  position: absolute;
  top: -28px;
  left: 36px;
  z-index: 2;
  padding: 0 14px;
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: #e2b86d;
  background: #f5f5f2;
}

.steps-card__line {
  position: absolute;
  top: 0;
  left: 78px;
  width: calc(100% - 110px);
  height: 22px;
  background: #f5f5f2;
}

.steps-card__content {
  max-width: 320px;
}

.steps-card__title {
  padding: 12px 0;
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.6;
  font-weight: 700;
  color: #1f293b;
}

.steps-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: #4b4b4b;
}

/* ===== PROJECT PAGE ===== */

.project-page .project-section {
  padding-top: 48px;
}

.project-page .project-header {
  background: rgba(245, 245, 242, 0.95);
  border-bottom: 1px solid #e7e2d8;
}

.project-page .project-main {
  padding-bottom: 96px;
}

.project-page .project-top-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e8e3d8;
}

.project-page .project-top-tabs a {
  padding: 12px 20px;
}

.project-page .project-hero-slider {
  margin-top: 24px;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.project-page .project-slider-image-wrap {
  position: relative;
  height: 640px;
}

.project-page .project-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.8s ease;
}

.project-page .project-slider-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

.project-page .project-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.project-page .project-slider-arrow-left {
  left: 16px;
}

.project-page .project-slider-arrow-right {
  right: 16px;
}

.project-page .project-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.project-page .project-slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.project-page .project-slider-dot.active {
  background: #fff;
}

.project-page .project-h1,
.project-page .project-h2,
.project-page p,
.project-page ul {
  margin: 0;
}

.project-page .project-specs-header {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}

.project-page .project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.project-page .project-h1 {
  font-size: 36x;
  line-height: 1.1;
  color: #1f2937;
  font-weight: 600;
}

.project-page .project-h2 {
  font-size: 36px;
  line-height: 1.6;
  color: #1f2937;
  font-weight: 600;
}

.project-page .project-price-netto {
  font-size: 18px;
  font-weight: 600;
  color: #475467;
}

.project-page .project-price-per-meter {
  margin-top: 16px;
  font-size: 14px;
  color: #98a2b3;
}

.project-page .project-spec-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.project-page .project-spec-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: #f3f3f0;
  border-radius: 12px;
  min-height: 76px;
}

.project-page .project-spec-value {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.project-page .project-spec-label {
  font-size: 11px;
  color: #98a2b3;
}

.project-page .project-variants-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.project-page .project-variant-card {
  padding: 16px;
  background: #fff;
  border: 1px solid #e8e3d8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.project-page .project-variant-name {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.project-page .project-variant-price {
  margin-top: 4px;
  font-size: 14px;
  color: #667085;
}

.project-page .project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.project-page .project-gallery-img {
  width: 100%;
  height: 324px;
  object-fit: cover;
  border-radius: 12px;
  grid-column: span 4;
}

.project-page .project-gallery-big {
  height: 356px;
  grid-column: span 6;
}

.project-page .project-content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.project-page .project-content-block-reverse .project-content-image {
  order: 1;
}

.project-page .project-content-block-reverse .project-content-text {
  order: 2;
}

.project-page .project-content-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-page .project-content-text p,
.project-page .project-content-text li,
.project-page .project-contact-content p,
.project-page .project-contact-content li {
  font-size: 15px;
  line-height: 1.9;
  color: #667085;
}

.project-page .project-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c79b48;
}

.project-page .project-title-gold {
  color: #c79b48;
}

.project-page .project-content-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.project-page .project-content-image-small {
  height: 280px;
}

.project-page .project-feature-list {
  padding-left: 20px;
  margin: 0;
}

.project-page .project-feature-list li {
  margin-bottom: 8px;
}

.project-page .project-plan-card {
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.project-page .project-plan-image {
  width: 100%;
  border-radius: 8px;
}

.project-page .project-contact-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.project-page .project-contact-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.project-page .project-contact-content {
  padding: 48px;
}

.project-page .project-contact-copy {
  margin-top: 20px;
}

.project-page .project-contact-list {
  margin-top: 16px;
  list-style: none;
  padding: 0;
}

.project-page .project-contact-boxes {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.project-page .project-contact-box {
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 16px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .home-page .section-heading h2 {
    font-size: 32px;
  }

  .home-page .projects-grid,
  .home-page .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-page .about-grid,
  .home-page .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .steps-module__grid {
    grid-template-columns: 1fr;
  }

  .steps-card {
    min-height: auto;
  }

  .steps-card__content {
    max-width: none;
  }

  .project-page .project-specs-header,
  .project-page .project-content-block,
  .project-page .project-contact-card {
    grid-template-columns: 1fr;
  }

  .project-page .project-spec-pills,
  .project-page .project-variants-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-page .project-gallery-img,
  .project-page .project-gallery-big {
    grid-column: span 6;
  }

  .project-page .project-content-block-reverse .project-content-image,
  .project-page .project-content-block-reverse .project-content-text {
    order: initial;
  }

  .home-page .footer-inner,
  .project-page .project-footer-inner {
    flex-direction: column;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .home-page .container,
  .project-page .project-container,
  .project-page .project-container-narrow {
    width: min(100% - 24px, 1280px);
  }

  /* ── NAWIGACJA – home-page ── */
  .home-page .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    align-items: flex-start;
  }

  .home-page .logo-link {
    width: 100%;
  }

  .home-page .main-nav {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
    gap: 24px;
    margin-left: 0;
    padding: 10px 0 4px;
    border-top: 1px solid #e7e2d8;
    margin-top: 10px;
  }

  .home-page .main-nav a {
    font-size: 13px;
  }

  /* ── NAWIGACJA – project-page ── */
  .project-page .project-header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    align-items: flex-start;
  }

  .project-page .project-logo-link {
    width: 100%;
  }

  .project-page .project-main-nav {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
    gap: 24px;
    margin-left: 0;
    padding: 10px 0 4px;
    border-top: 1px solid #e7e2d8;
    margin-top: 10px;
  }

  .project-page .project-main-nav a {
    font-size: 13px;
  }

  .hero-card,
  .home-page .hero-content {
    min-height: 420px;
  }

  .home-page .hero-content,
  .home-page .benefits-visual,
  .home-page .benefits-content,
  .home-page .contact-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-page .hero-content {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .home-page h1 {
    font-size: 32px;
  }

  .home-page h2,
  .home-page .benefits-content h2,
  .home-page .contact-content h2 {
    font-size: 30px;
  }

  .home-page .section-heading h2 {
    font-size: 34px;
  }

  .home-page .section-heading p,
  .home-page .hero-description,
  .home-page .about-item p,
  .home-page .contact-description {
    font-size: 16px;
  }

  .home-page .projects-grid,
  .home-page .benefits-grid,
  .project-page .project-spec-pills,
  .project-page .project-variants-grid,
  .project-page .project-content-block,
  .project-page .project-contact-card,
  .project-page .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-page .about-item h3 {
    font-size: 28px;
  }

  .home-page .footer-inner,
  .home-page .footer-center,
  .project-page .project-footer-center {
    flex-direction: column;
    text-align: center;
  }

  .home-page .site-footer {
    margin-top: 64px;
  }

  .steps-module {
    padding: 56px 0 24px;
  }

  .steps-module__container {
    width: min(100% - 24px, 1280px);
  }

  .steps-module__title {
    margin-bottom: 36px;
    font-size: 28px;
  }

  /* NAPRAWIONO: błąd "margin: 40px 20px; 0 0;" — średnik w środku wartości */
  .steps-module__grid {
    margin: 40px 20px 0 0;
  }

  .steps-card {
    padding: 48px 22px 26px;
  }

  .steps-card__number {
    left: 22px;
    font-size: 56px;
    top: -20px;
  }

  .steps-card__line {
    left: 56px;
    width: calc(100% - 78px);
  }

  .steps-card__title {
    font-size: 22px;
  }

  .steps-card__text {
    font-size: 15px;
  }

  .home-page .benefits-content {
    margin: 0 20px;
  }

  .project-page .project-slider-image-wrap {
    height: 280px;
  }

  .project-page .project-h1 {
    font-size: 34px;
  }

  .project-page .project-h2 {
    font-size: 28px;
  }

  .project-page .project-gallery-img,
  .project-page .project-gallery-big {
    grid-column: auto;
    height: 420px;
  }

  .project-page .project-contact-content {
    padding: 32px 24px;
  }

  .project-page .project-plan-card {
    padding: 16px;
  }
}
/* ===== PAKOX TAXI OVERRIDES ===== */
.taxi-page { --taxi-yellow: #f5c400; --taxi-dark: #111827; }
.taxi-page .taxi-logo { display:inline-flex; align-items:center; font-weight:800; letter-spacing:.08em; color:var(--taxi-dark); font-size:22px; }
.taxi-page .site-footer .taxi-logo { color:#fff; }
.taxi-page .site-header { border-bottom-color:#e5c74f; }
.taxi-page .eyebrow, .taxi-page .steps-module__title { color:#b68d00; }
.taxi-page .btn-dark, .taxi-page .benefits-content, .taxi-page .site-footer { background:var(--taxi-dark); }
.taxi-page .btn-light { background:var(--taxi-yellow); color:var(--taxi-dark); }
.taxi-page .site-footer { border-top-color:var(--taxi-yellow); }
.taxi-page .empty-container { display:block; background:transparent !important; border:2px dashed rgba(100,116,139,.28); min-height:180px; }
.taxi-page .hero-image.empty-container { border:0; background:linear-gradient(135deg,#2b3038,#151922) !important; }
.taxi-page .project-image.empty-container { aspect-ratio:1.2/.85; min-height:0; }
.taxi-page .benefits-house.empty-container { height:360px; }
.taxi-page .about-bg.empty-container { height:520px; border:0; }
.taxi-page .contact-image.empty-container { min-height:420px; }
.taxi-page .about-logo { height:auto; color:#fff; font-size:30px; }
.taxi-page .footer-logo { height:auto; }

/* ===== CONTACT FORM ===== */

.home-page .contact-card {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  background: #ffffff;
}

.home-page .contact-image-wrap {
  min-height: 100%;
  background: #111827;
}

.home-page .contact-content {
  padding: clamp(32px, 5vw, 64px);
}

.home-page .contact-description {
  max-width: 620px;
}

.home-page .contact-form {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

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

.home-page .form-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.home-page .form-field label {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #334155;
}

.home-page .form-field input,
.home-page .form-field select,
.home-page .form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #d9dee7;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: #172033;
  outline: none;
  appearance: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-page .form-field input::placeholder,
.home-page .form-field textarea::placeholder {
  color: #94a3b8;
}

.home-page .form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.home-page .form-field input:hover,
.home-page .form-field select:hover,
.home-page .form-field textarea:hover {
  border-color: #b9c2d0;
  background: #ffffff;
}

.home-page .form-field input:focus,
.home-page .form-field select:focus,
.home-page .form-field textarea:focus {
  border-color: #c79b48;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(199, 155, 72, 0.16);
}

.home-page .select-wrap {
  position: relative;
}

.home-page .select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.home-page .select-wrap select {
  padding-right: 48px;
  cursor: pointer;
}

.home-page .form-submit {
  width: fit-content;
  min-width: 210px;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-page .form-submit:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.22);
}

.home-page .form-submit:active {
  transform: translateY(0);
}

.home-page .form-status {
  display: none;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
}

.home-page .form-status.is-success {
  display: block;
  border: 1px solid #b7e4c7;
  background: #e9f8ef;
  color: #166534;
}

.home-page .form-status.is-error {
  display: block;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

@media (max-width: 1200px) {
  .home-page .contact-card {
    grid-template-columns: 1fr;
  }

  .home-page .contact-image-wrap {
    min-height: 280px;
  }

  .taxi-page .contact-image.empty-container {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .home-page .contact-content {
    padding: 28px 20px;
  }

  .home-page .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-page .form-submit {
    width: 100%;
  }
}

/* ===== HERO SLIDER ===== */
.home-page .hero-slider {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.22);
  touch-action: pan-y;
  user-select: none;
}

.home-page .hero-slides,
.home-page .hero-slide {
  min-height: 540px;
}

.home-page .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity .55s ease, transform .8s ease, visibility .55s ease;
}

.home-page .hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.home-page .hero-slide-bg,
.home-page .hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
}

.home-page .hero-slide-bg {
  background-size: cover;
  background-position: center;
}

.home-page .hero-slide-bg-1 { background: linear-gradient(135deg, #101720, #202b3b); }
.home-page .hero-slide-bg-2 { background: linear-gradient(135deg, #172033, #2f3d51); }
.home-page .hero-slide-bg-3 { background: linear-gradient(135deg, #111827, #334155); }

.home-page .hero-slide .hero-content {
  position: relative;
  z-index: 2;
}

.home-page .hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(17,24,39,.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease;
}

.home-page .hero-arrow:hover {
  background: rgba(17,24,39,.85);
  transform: translateY(-50%) scale(1.05);
}

.home-page .hero-arrow-prev { left: 20px; }
.home-page .hero-arrow-next { right: 20px; }

.home-page .hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.home-page .hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.home-page .hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--taxi-yellow, #f5c400);
}

.home-page .hero-slider.is-dragging { cursor: grabbing; }

@media (max-width: 768px) {
  .home-page .hero-slider,
  .home-page .hero-slides,
  .home-page .hero-slide {
    min-height: 500px;
  }

  .home-page .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .home-page .hero-arrow-prev { left: 10px; }
  .home-page .hero-arrow-next { right: 10px; }

  .home-page .hero-slide .hero-content {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* ===== EXPANDABLE PROJECT DETAILS ===== */

.home-page .project-card {
  align-self: start;
}

.home-page .project-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8edf3;
}

.home-page .project-details summary {
  list-style: none;
}

.home-page .project-details summary::-webkit-details-marker {
  display: none;
}

.home-page .details-toggle {
  width: fit-content;
  margin-left: auto;
  border: 0;
  cursor: pointer;
  user-select: none;
}

.home-page .project-details[open] .details-toggle {
  background: #334155;
}

.home-page .project-details[open] .details-toggle::after {
  content: " — zwiń";
}

.home-page .project-details-inner {
  padding: 20px 0 4px;
}

.home-page .project-details-inner p {
  font-size: 14px;
  line-height: 1.75;
  color: #64748b;
}

.home-page .project-details-inner p + p {
  margin-top: 12px;
}

.home-page .details-contact {
  margin-top: 20px;
  border: 0;
  background: #c79b48;
  color: #fff;
}

.home-page .details-contact:hover {
  background: #b88d3c;
}

/* ===== ODSTĘP NAD PRZYCISKIEM SZCZEGÓŁY ===== */

.home-page .project-top {
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf3;
}

.home-page .project-details {
  margin-top: 18px;
  border-top: 0;
}

.home-page .details-toggle {
  margin-top: 0;
}

/* ===== GRAFIKA E-MAIL — WERSJA FINALNA ===== */

.home-page .contact-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
}

.home-page .contact-image-wrap.contact-email-bg {
  width: 100%;
  min-height: 560px;
  background-color: #111827;
  background-image: url("email-koperta.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media (max-width: 1200px) {
  .home-page .contact-card {
    grid-template-columns: 1fr;
  }

  .home-page .contact-image-wrap.contact-email-bg {
    min-height: 420px;
    aspect-ratio: 16 / 9;
    background-size: contain;
  }
}

@media (max-width: 768px) {
  .home-page .contact-image-wrap.contact-email-bg {
    min-height: 0;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-position: center;
  }
}


/* ===== OBRAZ: JEŹDZIJ WŁASNYM SAMOCHODEM ===== */

.home-page .project-image.project-image-own-car {
  display: block;
  width: 100%;
  height: 290px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background-color: #111827;
}

@media (max-width: 1200px) {
  .home-page .project-image.project-image-own-car {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .home-page .project-image.project-image-own-car {
    height: 230px;
  }
}

/* ===== XTLOGO — WERSJA FINALNA ===== */

.home-page .about-logo-box {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

.home-page .about-logo-image {
  display: block;
  width: 86%;
  max-width: 480px;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  object-position: center;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 768px) {
  .home-page .about-logo-box {
    padding: 8px;
  }

  .home-page .about-logo-image {
    width: 90%;
    max-width: 380px;
    max-height: 84%;
  }
}

/* ===== HERO SLIDER — WYŚRODKOWANA TREŚĆ ===== */

.home-page .hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-page .hero-text {
  width: min(860px, 100%);
  max-width: 860px;
  margin: 0 auto;
}

.home-page .hero-description {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero-actions {
  justify-content: center;
}

@media (max-width: 768px) {
  .home-page .hero-content {
    text-align: center;
  }

  .home-page .hero-text {
    width: 100%;
  }

  .home-page .hero-actions {
    justify-content: center;
  }
}