:root {
  --color-bg: #f4f7f2;
  --color-surface: #ffffff;
  --color-text: #1a2e1f;
  --color-text-muted: #3d5244;
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-accent: #40916c;
  --color-leaf: #52b788;
  --color-mint: #b7e4c7;
  --color-bloom: #c45c8a;
  --color-sky: #2a9d8f;
  --color-earth: #8b6914;
  --color-border: rgba(27, 67, 50, 0.12);
  --shadow-sm: 0 4px 14px rgba(27, 67, 50, 0.08);
  --shadow-md: 0 16px 48px rgba(27, 67, 50, 0.14);
  --radius: 16px;
  --font-sans: "Nunito Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --container: min(1120px, calc(100% - 2rem));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main,
.site-header,
.site-footer {
  width: 100%;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.main-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-left: 0.15rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.lang-btn {
  display: grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 2rem;
  padding: 0.2rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lang-flag {
  display: block;
  width: 1.45rem;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-btn.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(45, 106, 79, 0.22);
}

.lang-btn:hover {
  border-color: var(--color-leaf);
  transform: translateY(-1px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  flex-shrink: 1;
}

.logo:hover {
  color: var(--color-primary);
}

.logo-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.logo-icon-crown {
  fill: var(--color-accent);
}

.logo-icon-trunk {
  fill: var(--color-primary-dark);
}

.logo:hover .logo-icon-crown {
  fill: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav-links a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.hero {
  position: relative;
  padding: 2.75rem 0 3.25rem;
  background-color: #1b4332;
  background-image:
    linear-gradient(
      118deg,
      rgba(255, 252, 248, 0.96) 0%,
      rgba(228, 245, 233, 0.9) 38%,
      rgba(45, 106, 79, 0.45) 68%,
      rgba(27, 67, 50, 0.62) 100%
    ),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 340px);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.eyebrow {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-dark);
  background: linear-gradient(90deg, rgba(183, 228, 199, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(82, 183, 136, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 0 0.85rem;
}

.hero-scope {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  line-height: 1.45;
  color: var(--color-primary-dark);
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-tiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero-tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.hero-tile--garden {
  border-left: 4px solid var(--color-leaf);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(214, 245, 224, 0.85));
}

.hero-tile--clean {
  border-left: 4px solid var(--color-sky);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(210, 242, 237, 0.85));
}

.hero-tile--wood {
  border-left: 4px solid var(--color-earth);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 235, 220, 0.9));
}

.hero-tile--wood .hero-tile-icon {
  background: rgba(139, 105, 20, 0.15);
}

.hero-tile-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.hero-tile--garden .hero-tile-icon {
  background: rgba(82, 183, 136, 0.2);
  color: var(--color-primary-dark);
}

.hero-tile--clean .hero-tile-icon {
  background: rgba(42, 157, 143, 0.18);
  color: var(--color-primary-dark);
}

.hero-tile-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.hero-tile-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.hero-tile p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: rgba(45, 106, 79, 0.25);
}

.btn-secondary:hover {
  border-color: var(--color-leaf);
  color: var(--color-primary);
  background: rgba(183, 228, 199, 0.35);
}

.section {
  padding: 4rem 0;
}

.section--muted {
  background: linear-gradient(180deg, #e8f3ec 0%, #eef6f0 100%);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-border);
}

.service-card--garden {
  border-top-color: var(--color-leaf);
  background: linear-gradient(180deg, #fff 0%, #f0faf4 100%);
}

.service-card--clean {
  border-top-color: var(--color-sky);
  background: linear-gradient(180deg, #fff 0%, #eef8f6 100%);
}

.service-card--wood {
  border-top-color: var(--color-earth);
  background: linear-gradient(180deg, #fff 0%, #faf6ef 100%);
}

.service-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.service-note a {
  font-weight: 600;
  text-decoration: none;
}

.service-note a:hover {
  text-decoration: underline;
}

.service-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.service-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
}

.service-card li + li {
  margin-top: 0.35rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
}

.gallery-item-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  text-align: inherit;
  font: inherit;
  color: inherit;
}

.gallery-item-open:focus-visible {
  outline: 2px solid var(--color-leaf);
  outline-offset: 3px;
}

.gallery-item-open img {
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item-open:hover img,
.gallery-item-open:focus-visible img {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--color-mint) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}

.gallery-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.gallery-placeholder--2 { background: linear-gradient(145deg, #7eb8a8, #2a6f64); }
.gallery-placeholder--3 { background: linear-gradient(145deg, #74c69d, #1b4332); }
.gallery-placeholder--4 { background: linear-gradient(145deg, #b7e4c7, #40916c); }
.gallery-placeholder--5 { background: linear-gradient(145deg, #95d5b2, #2d6a4f); }
.gallery-placeholder--6 { background: linear-gradient(145deg, #52b788, #1b4332); }
.gallery-placeholder--7 { background: linear-gradient(145deg, #d4a574, #6b4423); }
.gallery-placeholder--8 { background: linear-gradient(145deg, #c9956c, #5c3d2e); }
.gallery-placeholder--9 { background: linear-gradient(145deg, #e8c9a8, #8b6914); }

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.realizacje-gallery .gallery-item img {
  aspect-ratio: 3 / 4;
}

.realizacje-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-infinite-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.35rem 0 0.75rem;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.carousel-infinite-track {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  width: max-content;
  animation: realizacje-loop 75s linear infinite;
  will-change: transform;
}

.carousel-infinite-track.is-hover-paused,
.carousel-infinite-track.is-paused {
  animation-play-state: paused;
}

.carousel-infinite-item {
  flex: 0 0 auto;
  width: min(17.5rem, 72vw);
}

.carousel-infinite-item .gallery-item {
  margin: 0;
  width: 100%;
  background: var(--color-surface);
  padding: 0.6rem;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(82, 183, 136, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.carousel-infinite-item .gallery-item-open {
  width: 100%;
}

.carousel-infinite-item .gallery-item:not(.gallery-item--before-after) img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.carousel-hint {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.carousel-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.15rem;
}

@keyframes realizacje-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.page-intro {
  padding-bottom: 2rem;
}

.section-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.realizacje-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.realizacje-jump a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 106, 79, 0.25);
  background: #fff;
  color: var(--color-primary-dark);
}

.realizacje-jump a:hover {
  border-color: var(--color-leaf);
  background: rgba(183, 228, 199, 0.35);
}

.realizacje-category + .realizacje-category {
  margin-top: 2.75rem;
}

.realizacje-category-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-primary-dark);
  margin: 0 0 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(82, 183, 136, 0.35);
}

.realizacje-gallery {
  margin-top: 0;
}

.realizacje-gallery:has(.gallery-item--before-after) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  justify-items: center;
}

.gallery-item--before-after {
  grid-column: auto;
  max-width: 22rem;
  width: 100%;
}

.ba-compare-wrap {
  width: 100%;
}

.ba-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(82, 183, 136, 0.28);
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
  background: #0a1410;
}

.ba-compare__after,
.ba-compare__before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-compare__after {
  width: 100%;
  z-index: 1;
}

.ba-compare__before-clip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}

.ba-compare__before {
  max-width: none;
}

.ba-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 2.75rem;
  margin-left: -1.375rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.ba-compare__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(27, 67, 50, 0.45), 0 0 12px rgba(0, 0, 0, 0.35);
}

.ba-compare__handle-line::before,
.ba-compare__handle-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -6px;
  border: 6px solid transparent;
}

.ba-compare__handle-line::before {
  left: -14px;
  border-right-color: #fff;
}

.ba-compare__handle-line::after {
  right: -14px;
  border-left-color: #fff;
}

.ba-compare__badge {
  position: absolute;
  top: 0.55rem;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
  color: #fff;
  background: rgba(27, 67, 50, 0.72);
}

.ba-compare__badge--before {
  left: 0.55rem;
}

.ba-compare__badge--after {
  right: 0.55rem;
}

.ba-compare__hint {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.carousel-infinite-item:has(.gallery-item--before-after) {
  width: min(17.5rem, 72vw);
}

.carousel-infinite-item .gallery-item--before-after {
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .gallery-item--before-after {
    max-width: min(20rem, 100%);
  }
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 24, 0.88);
  cursor: zoom-out;
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 56rem);
  max-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.75rem;
}

.gallery-lightbox-figure {
  position: relative;
  margin: 0;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  background: #0a1410;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.gallery-lightbox-close {
  top: -0.25rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.65rem;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.35rem;
}

.gallery-lightbox-prev {
  left: 0;
}

.gallery-lightbox-next {
  right: 0;
}

@media (max-width: 640px) {
  .gallery-lightbox-panel {
    padding: 0 0.25rem;
  }

  .gallery-lightbox-nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
  }

  .gallery-lightbox-close {
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-infinite-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .carousel-hint {
    display: none;
  }
}

.contact-wrap {
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(82, 183, 136, 0.22);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #fff 0%, #f2faf5 100%);
}

.contact-card--phone {
  border-top: 4px solid var(--color-leaf);
}

.contact-card--area {
  border-top: 4px solid var(--color-sky);
  background: linear-gradient(180deg, #fff 0%, #eef8f6 100%);
  padding-bottom: 1.25rem;
}

.contact-card--location {
  border-top: 4px solid var(--color-primary);
  background: linear-gradient(180deg, #fff 0%, #f2faf5 100%);
}

.contact-card .contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-area {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  min-height: 10.5rem;
  border: 1px solid rgba(42, 157, 143, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contact-area-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(220, 245, 230, 0.78) 38%,
      rgba(45, 106, 79, 0.62) 100%
    ),
    url("../images/area-bg.jpg") center 40% / cover no-repeat;
}

.contact-area-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 4.5rem;
  z-index: 1;
  pointer-events: none;
}

.contact-area-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 10.5rem;
  padding: 1.35rem 1rem 2.5rem;
}

.contact-area-badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.15);
  border: 2px solid rgba(82, 183, 136, 0.45);
}

.contact-area-icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: var(--color-primary);
}

.contact-area-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.contact-area-text strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.contact-address {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.contact-map-frame {
  flex: 1;
  margin-top: 0.35rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(42, 157, 143, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  min-height: 16rem;
  background: #dceee9;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  border: 0;
}

.contact-map-note {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: right;
}

.contact-map-note a {
  text-decoration: none;
  font-weight: 500;
}

.contact-map-note a:hover {
  text-decoration: underline;
}

.contact-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-call:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

.contact-call-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-call-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-call-hint {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.92;
  margin-left: 2.2rem;
}

@media (min-width: 420px) {
  .contact-call-hint {
    width: auto;
    margin-left: 0;
    margin-inline-start: auto;
  }
}

.back-to-top {
  position: fixed;
  right: calc(1rem + var(--safe-right));
  bottom: calc(1rem + var(--safe-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 6px 22px rgba(27, 67, 50, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  transform: translateY(-2px);
}

.back-to-top.is-visible:hover {
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  background: var(--color-surface);
}

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-copy p {
  margin: 0;
}

.footer-author {
  margin-top: 0.4rem !important;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-map-frame,
  .contact-map-frame iframe {
    min-height: 14rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 1.65rem 1.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-tiles {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery,
  .realizacje-gallery {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(1120px, calc(100% - 1.25rem));
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
    background-position: center 30%;
  }

  .hero-copy {
    padding: 1.35rem 1.15rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .carousel-infinite-item {
    width: min(16rem, 78vw);
  }

  .carousel-actions .btn {
    width: 100%;
    max-width: 22rem;
  }

  .contact-map-note {
    text-align: center;
  }

  .contact-call {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-call-hint {
    width: 100%;
    margin-left: 0;
    margin-top: 0.15rem;
  }

  .contact-call-text {
    font-size: 1.25rem;
  }

  .site-footer {
    padding-bottom: calc(1.5rem + var(--safe-bottom));
  }
}

@media (max-width: 860px) {
  .main-nav-links a {
    white-space: normal;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: auto;
    z-index: 120;
    min-width: 13.75rem;
    display: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 0.35rem 0.85rem 0.5rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav-links a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.15rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  .main-nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .header-end {
    position: relative;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0.55rem;
    border-left: 1px solid var(--color-border);
  }

  .lang-btn {
    min-width: 2.15rem;
    min-height: 1.9rem;
  }

  .lang-flag {
    width: 1.3rem;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
}

@media (max-width: 640px) {

  .gallery {
    grid-template-columns: 1fr;
  }

  .realizacje-jump {
    flex-direction: column;
    align-items: stretch;
  }

  .realizacje-jump a {
    text-align: center;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    max-width: 100%;
    line-height: 1.35;
  }

  .back-to-top {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .carousel-hint {
    display: none;
  }

  .btn:hover,
  .contact-call:hover,
  .back-to-top:hover {
    transform: none;
  }
}
