:root {
  --ink: #17211d;
  --muted: #5f6b64;
  --paper: #ffffff;
  --soft: #f4f7f1;
  --forest: #193f2f;
  --forest-2: #2c6046;
  --brick: #c82820;
  --brick-dark: #a21f19;
  --line: #dce4da;
  --shadow: 0 20px 50px rgba(23, 33, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 28, 22, 0.78), rgba(15, 28, 22, 0));
}

.brand,
.nav-links,
.header-call {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.22);
}

.nav-links {
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.header-call {
  text-decoration: none;
}

.header-call {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 22, 17, 0.82) 0%, rgba(11, 22, 17, 0.52) 42%, rgba(11, 22, 17, 0.08) 100%),
    linear-gradient(0deg, rgba(11, 22, 17, 0.82) 0%, rgba(11, 22, 17, 0.12) 52%, rgba(11, 22, 17, 0.46) 100%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 150px;
  transform: translateX(min(-15vw, -120px));
  min-width: 0;
}

.hero-location,
.section-label {
  margin: 0 0 14px;
  color: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-lead {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 20px);
  overflow-wrap: anywhere;
}

.hero-actions,
.price-layout,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--brick);
  box-shadow: 0 14px 34px rgba(200, 40, 32, 0.28);
}

.button.primary:hover {
  background: var(--brick-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.hero-facts {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 42px;
  left: clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-facts div {
  padding: 20px 24px 0 0;
}

.hero-facts span,
.facts-list span,
.contact-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.7);
}

.hero-facts strong,
.facts-list strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.quick-info,
.feature-section,
.gallery-section,
.contact-section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.quick-info {
  background: var(--paper);
}

.info-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(38px, 6vw, 90px);
}

.info-grid > *,
.feature-layout > *,
.gallery-heading > *,
.gallery > *,
.contact-layout > * {
  min-width: 0;
}

.section-label {
  color: var(--brick);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
}

.facts-list div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.offer-copy {
  display: grid;
  gap: 12px;
  font-size: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.offer-copy p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.offer-copy p:first-child {
  padding-top: 0;
  border-top: 0;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
}

.feature-section {
  background: var(--soft);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.feature-copy p:not(.section-label),
.price-layout p,
.gallery-heading p,
.contact-layout p,
.site-footer {
  color: var(--muted);
  font-size: 17px;
}

.feature-copy p:not(.section-label) {
  margin: 24px 0 0;
}

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

.benefit-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 750;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--brick);
}

.feature-media {
  margin: 0;
}

.feature-media img,
.gallery-main,
.thumb {
  border-radius: 8px;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-media figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.price-band {
  color: #fff;
  background: var(--forest);
  padding: 58px 0;
}

.price-layout {
  align-items: center;
  justify-content: space-between;
}

.price-layout > div {
  max-width: 700px;
}

.price-layout .section-label {
  color: #b8dac9;
}

.price-layout p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.gallery-section {
  background: var(--paper);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 440px);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.gallery-heading p {
  margin: 0;
}

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

.gallery-main,
.thumb,
.lightbox-close {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.gallery-main {
  padding: 0;
  overflow: hidden;
  background: #eef2ea;
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.thumb {
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  background: #eef2ea;
}

.thumb.active {
  border-color: var(--brick);
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-section {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(25, 63, 47, 0.96), rgba(25, 63, 47, 0.82)),
    url("assets/04-widok-boczny-sam-obrys.jpg") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.contact-layout .section-label {
  color: #b8dac9;
}

.contact-layout p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  flex-direction: column;
}

.contact-link {
  display: block;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.contact-link span {
  color: rgba(255, 255, 255, 0.68);
}

.contact-link strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--forest);
  font-weight: 850;
}

.lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 14, 12, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--brick);
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(23, 33, 29, 0.08);
  }

  .brand-mark {
    border-color: var(--forest);
    box-shadow: inset 0 0 0 6px rgba(25, 63, 47, 0.12);
  }

  .nav-links {
    display: none;
  }

  .header-call {
    color: var(--forest);
    border-color: var(--line);
    background: #fff;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    width: min(720px, calc(100% - 36px));
    margin-bottom: 205px;
    transform: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 22, 17, 0.76), rgba(11, 22, 17, 0.26)),
      linear-gradient(0deg, rgba(11, 22, 17, 0.9), rgba(11, 22, 17, 0.18) 58%, rgba(11, 22, 17, 0.4));
  }

  .info-grid,
  .feature-layout,
  .gallery-heading,
  .gallery,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 13px;
  }

  .header-call {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-image {
    object-position: 54% center;
  }

  .hero-content {
    width: min(390px, calc(100% - 36px));
    margin-bottom: 242px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0;
    bottom: 22px;
  }

  .hero-facts div {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

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

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

  .price-layout,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .header-call {
    display: none;
  }

  h2 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .section-inner {
    width: min(390px, calc(100% - 36px));
  }

  .offer-copy p:first-child {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
