:root {
  --paper: #f6f3ec;
  --paper-strong: #fffdf8;
  --ink: #24321f;
  --text: #32342f;
  --muted: #687066;
  --sage: #89927b;
  --sage-light: #e9ede3;
  --line: #d8cdbe;
  --rust: #a84612;
  --rust-dark: #843309;
  --forest: #1d341f;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(34, 43, 31, 0.12);
  --content: 1240px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17.6px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

body[data-theme="lesniczowka"] {
  --forest: #26371d;
  --rust: #a33d0a;
}

body[data-theme="uroczysko"] {
  --paper: #f8f6f0;
  --sage-light: #edf1e9;
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3,
.display {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 6.6rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 22px;
  font-size: 4.675rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 2.365rem;
  line-height: 1.15;
}

p {
  margin-bottom: 20px;
}

.container {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section--compact {
  padding: 64px 0;
}

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

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

.section--sage {
  background: var(--sage-light);
}

.section--dark {
  color: rgba(255, 255, 255, 0.86);
  background: var(--forest);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.836rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: var(--rust);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.188rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(36, 50, 31, 0.12);
  background: rgba(246, 243, 236, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.site-logo {
  flex: 0 0 auto;
  width: 210px;
}

.site-logo img {
  height: 53px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--rust);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.155rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--rust-dark);
  background: var(--rust-dark);
  transform: translateY(-1px);
}

.button--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.button--ghost:hover {
  color: var(--white);
}

.button--light {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.button--light:hover {
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rust);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.text-link svg,
.button svg {
  width: 18px;
  height: 18px;
}

.selector-page {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px 0 18px;
  background: var(--paper);
}

.selector-intro {
  max-width: 820px;
  margin: 0 auto 20px;
  text-align: center;
}

.selector-intro h1 {
  margin-bottom: 10px;
  font-size: 4.95rem;
}

.selector-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.375rem;
  line-height: 1.35;
}

.selector-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.location-group,
.property-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.location-group {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px;
}

.location-group__heading {
  margin-bottom: 14px;
  text-align: center;
}

.location-group__heading h2 {
  margin-bottom: 2px;
  font-size: 3.08rem;
}

.location-group__heading p,
.property-card__place {
  margin: 0;
  color: var(--text);
  font-size: 0.836rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.property-pair {
  display: grid;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.property-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.property-pair .property-card {
  border-color: rgba(216, 205, 190, 0.82);
}

.property-card--accent {
  border-color: rgba(168, 70, 18, 0.45);
  background: #fff8f2;
}

.property-card__image {
  position: relative;
  min-height: 0;
  flex: 1 1 230px;
  overflow: hidden;
  background: var(--sage-light);
}

.property-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.property-card:hover .property-card__image img {
  transform: scale(1.025);
}

.property-card__body {
  padding: 14px 18px 16px;
  text-align: center;
}

.property-card__body h3 {
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.property-card--accent .property-card__body h3 {
  color: var(--rust);
}

.property-card__subbrand {
  display: block;
  margin-top: -5px;
  margin-bottom: 7px;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.99rem;
}

.property-facts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.902rem;
}

.property-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.property-facts svg {
  width: 17px;
  height: 17px;
  color: var(--ink);
}

.property-card .button {
  min-height: 40px;
  padding-inline: 20px;
  font-size: 1.045rem;
}

.selector-map {
  padding-top: 14px;
}

.selector-map__title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.485rem;
  text-align: center;
}

.selector-map__title::before,
.selector-map__title::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.route-map {
  position: relative;
  height: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sage-light);
}

.route-map img {
  position: absolute;
  top: 50%;
  left: -46.6%;
  width: 146.6%;
  max-width: none;
  height: auto;
  filter: saturate(0.55) contrast(0.85) brightness(1.1);
  transform: translateY(-50%);
}

.route-map::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: rgba(246, 243, 236, 0.28);
}

.route-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(36, 50, 31, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 20px rgba(36, 50, 31, 0.12);
  transform: translateY(-50%);
  font-family: Georgia, "Times New Roman", serif;
}

.route-label svg {
  width: 20px;
  height: 20px;
  color: var(--rust);
}

.route-label--start {
  left: 3%;
}

.route-label--distance {
  left: 50%;
  transform: translate(-50%, -50%);
}

.route-label--end {
  right: 3%;
}

.hero-property {
  position: relative;
  min-height: min(720px, calc(100svh - var(--header-height)));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero-property__media {
  position: absolute;
  inset: 0;
}

.hero-property__media img {
  height: 100%;
  object-fit: cover;
}

.hero-property::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  content: "";
  background: rgba(12, 24, 14, 0.7);
}

.hero-property--light {
  color: var(--text);
  background: var(--paper);
}

.hero-property--light::after {
  display: none;
}

.hero-property--light .hero-property__media {
  left: 44%;
}

.hero-property--light .hero-property__media img {
  object-position: center;
}

.hero-property--light .hero-property__content {
  width: 40%;
}

body[data-theme="nadlesniczowka"] .hero-property--light h1 {
  font-size: 4.95rem;
}

.hero-property__content {
  position: relative;
  z-index: 2;
  width: min(610px, 56%);
  padding: 80px 0 116px;
}

.hero-property__content .eyebrow {
  color: inherit;
}

.hero-property__content h1 {
  color: inherit;
}

.hero-property__lead {
  max-width: 570px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.98rem;
  line-height: 1.28;
}

.hero-property__description {
  max-width: 520px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-property--light .hero-property__description {
  color: var(--muted);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 30px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-stats svg {
  width: 21px;
  height: 21px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.hero-property:not(.hero-property--light) .text-link {
  color: var(--white);
}

.booking-strip {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(216, 205, 190, 0.75);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 18px 0;
}

.booking-field {
  position: relative;
}

.booking-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.792rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-field input,
.booking-field select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
}

.booking-field input:focus,
.booking-field select:focus {
  outline: 2px solid rgba(168, 70, 18, 0.25);
  outline-offset: 1px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

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

.split__content p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.155rem;
}

.split__media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
}

.split__media img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.number-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.number-item {
  padding: 36px 24px;
  text-align: center;
}

.number-item + .number-item {
  border-left: 1px solid var(--line);
}

.number-item strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 1;
}

.number-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.lodging-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.lodging-card__image {
  height: 340px;
  overflow: hidden;
}

.lodging-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.lodging-card:hover .lodging-card__image img {
  transform: scale(1.02);
}

.lodging-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 24px;
}

.lodging-card__body p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  height: 650px;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--sage-light);
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
  grid-column: 2 / 4;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: inherit;
  pointer-events: none;
}

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

.amenity {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.amenity + .amenity {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.amenity svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.4;
}

.amenity span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.188rem;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.map-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.map-image img {
  position: absolute;
  top: 50%;
  left: -46.6%;
  width: 146.6%;
  max-width: none;
  height: auto;
  filter: saturate(0.62) contrast(0.88) brightness(1.06);
  transform: translateY(-50%);
}

.map-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(36px, 5vw, 72px);
}

.map-copy p {
  color: var(--muted);
}

.map-meta {
  display: grid;
  gap: 12px;
  margin: 8px 0 28px;
}

.map-meta span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-meta svg {
  width: 20px;
  height: 20px;
  color: var(--rust);
}

.booking-cta {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
}

.booking-cta h2 {
  margin: 0;
  color: var(--white);
}

.booking-cta .booking-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.site-footer {
  padding: 48px 0 24px;
  color: rgba(255, 255, 255, 0.8);
  background: #142817;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 18px;
  filter: grayscale(1) brightness(3.2);
}

.site-footer h3 {
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.858rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.902rem;
}

.lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px;
  background: rgba(9, 17, 10, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
}

.toast {
  position: fixed;
  z-index: 400;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--forest);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  :root {
    --header-height: 70px;
  }

  .site-logo {
    width: 180px;
  }

  h1 {
    font-size: 5.17rem;
  }

  h2 {
    font-size: 3.74rem;
  }

  h3 {
    font-size: 1.98rem;
  }

  .selector-intro h1 {
    font-size: 4.07rem;
  }

  .selector-intro p {
    font-size: 1.188rem;
  }

  .location-group__heading h2 {
    font-size: 2.42rem;
  }

  .property-card__body h3 {
    font-size: 1.815rem;
  }

  .hero-property__lead {
    font-size: 1.65rem;
  }

  .site-logo img {
    height: 46px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 1.012rem;
  }

  .header-actions .button {
    display: none;
  }

  .selector-page {
    display: block;
    min-height: auto;
    padding-bottom: 28px;
  }

  .selector-grid {
    min-height: 640px;
  }

  .hero-property__content {
    width: 62%;
  }

  .hero-property--light .hero-property__content {
    width: 42%;
  }

  body[data-theme="nadlesniczowka"] .hero-property--light h1 {
    font-size: 4.18rem;
  }

  .booking-cta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, var(--content));
  }

  .section {
    padding: 72px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 28px 24px;
    background: var(--paper);
  }

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

  .site-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.43rem;
  }

  .selector-intro {
    margin-bottom: 26px;
  }

  .selector-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .property-card__image {
    min-height: 280px;
  }

  .selector-map {
    padding-top: 28px;
  }

  .route-map {
    height: 210px;
  }

  .hero-property,
  .hero-property--light {
    min-height: auto;
    display: block;
    padding-top: 360px;
    color: var(--text);
    background: var(--paper);
  }

  .hero-property__media,
  .hero-property--light .hero-property__media {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 360px;
  }

  .hero-property__media img {
    object-position: center;
  }

  .hero-property::after,
  .hero-property--light::after {
    display: none;
  }

  .hero-property__content {
    width: 100%;
    padding: 44px 0 180px;
  }

  .hero-property--light .hero-property__content {
    width: 100%;
  }

  body[data-theme="nadlesniczowka"] .hero-property--light h1 {
    font-size: 5.17rem;
  }

  .hero-property__content h1,
  .hero-property:not(.hero-property--light) .text-link {
    color: var(--ink);
  }

  .hero-property__description {
    color: var(--muted);
  }

  .booking-form,
  .booking-cta .booking-form {
    grid-template-columns: 1fr 1fr;
  }

  .booking-form .button {
    min-height: 46px;
  }

  .split,
  .split--reverse,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .split__media {
    min-height: 400px;
  }

  .lodging-card__body {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    height: 760px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.2fr 1fr 1fr;
  }

  .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .gallery-item:nth-child(2) {
    grid-column: auto;
  }

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

  .amenity:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .amenity:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .map-image {
    min-height: 340px;
  }

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

@media (max-width: 560px) {
  h1 {
    font-size: 3.52rem;
  }

  body[data-theme="nadlesniczowka"] .hero-property--light h1 {
    font-size: 3.135rem;
  }

  h2 {
    font-size: 2.64rem;
  }

  h3 {
    font-size: 1.705rem;
  }

  .selector-intro h1 {
    font-size: 2.97rem;
  }

  .location-group__heading h2 {
    font-size: 2.035rem;
  }

  .number-item strong {
    font-size: 3.96rem;
  }

  .site-logo {
    width: 164px;
  }

  .selector-page {
    padding-top: 24px;
  }

  .selector-intro p {
    font-size: 1.1rem;
  }

  .location-group {
    padding: 12px;
  }

  .property-pair {
    grid-template-columns: 1fr;
  }

  .property-card__image {
    min-height: 250px;
  }

  .route-map {
    height: auto;
    display: grid;
    gap: 8px;
    padding: 12px;
  }

  .route-map img,
  .route-map::after {
    display: none;
  }

  .route-label,
  .route-label--start,
  .route-label--distance,
  .route-label--end {
    position: static;
    transform: none;
  }

  .hero-property,
  .hero-property--light {
    padding-top: 300px;
  }

  .hero-property__media,
  .hero-property--light .hero-property__media {
    height: 300px;
  }

  .hero-property__content {
    padding-bottom: 280px;
  }

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

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

  .booking-form,
  .booking-cta .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-strip .booking-form {
    padding: 14px 0;
  }

  .split__media {
    min-height: 320px;
  }

  .number-row,
  .lodging-grid {
    grid-template-columns: 1fr;
  }

  .number-item + .number-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lodging-card__image {
    height: 280px;
  }

  .gallery-grid {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 250px);
  }

  .gallery-item:first-child,
  .gallery-item:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

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

  .amenity + .amenity,
  .amenity:nth-child(3),
  .amenity:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .map-image {
    min-height: 280px;
  }

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

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

  .lightbox {
    padding: 60px 16px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Selected start-page concept */
.concept-home {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  padding: clamp(22px, 3svh, 44px) 0 12px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("images/start-background.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.concept-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("images/hills-engraving-page-light.png");
  background-position: center 40%;
  background-repeat: no-repeat;
  background-size: 110% auto;
  opacity: 0.09;
  mix-blend-mode: multiply;
}

.concept-home > * {
  position: relative;
  z-index: 1;
}

.concept-header {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 180px;
  align-items: start;
  gap: 24px;
  padding-bottom: clamp(8px, calc(8svh - 60px), 56px);
}

.concept-logo {
  width: 260px;
}

.concept-logo img {
  height: 80px;
  object-fit: contain;
  object-position: left top;
}

.concept-title {
  text-align: center;
}

.concept-title h1 {
  margin: 0 0 clamp(12px, 2svh, 28px);
  font-size: 3.905rem;
  line-height: 0.98;
}

.concept-title p {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.188rem;
  line-height: 1.35;
}

.concept-book {
  min-height: 56px;
  margin-top: 10px;
  font-size: 1.43rem;
}

.concept-properties {
  --concept-heading-height: 94px;
  --concept-engraving-height: 255px;
  --concept-art-height: clamp(150px, 20.36svh, 193px);
  display: grid;
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 0;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

.concept-weremien {
  min-width: 0;
  display: grid;
  height: 100%;
  grid-template-rows: var(--concept-heading-height) minmax(0, 1fr);
}

.concept-group-heading {
  min-height: var(--concept-heading-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.concept-group-heading h2 {
  margin: 0 0 2px;
  font-size: 2.42rem;
  line-height: 1.05;
}

.concept-group-heading h2 span {
  color: var(--sage);
  font-size: 1.32rem;
  font-weight: 400;
}

.concept-group-heading p {
  margin: 0;
  color: var(--text);
  font-size: 0.858rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.concept-group-heading p b,
.concept-facts > b {
  margin-inline: 4px;
  color: var(--rust);
}

.concept-pair {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
}

.concept-property {
  min-width: 0;
  display: grid;
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(var(--concept-art-height), 1fr) 48px 34px 40px;
  align-content: start;
  justify-items: center;
  padding: 0 14px 10px;
  text-align: center;
}

.concept-property + .concept-property {
  box-shadow: inset 1px 0 0 rgba(168, 70, 18, 0.28);
}

.concept-engraving {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--concept-art-height);
  align-self: center;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 250, 245, 0.72);
}

.concept-engraving img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 260ms ease;
}

.concept-engraving:hover img {
  transform: translateY(-3px);
}

.concept-property h3 {
  align-self: center;
  margin: 0;
  font-size: 1.87rem;
}

.concept-facts {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-bottom: 0;
  font-size: 0.858rem;
}

.concept-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.concept-facts svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}

.concept-property .button,
.concept-uroczysko > .button {
  align-self: start;
  min-height: 40px;
  padding-inline: 24px;
  font-size: 1.1rem;
}

.concept-uroczysko {
  min-width: 0;
  display: grid;
  min-height: 0;
  height: 100%;
  grid-template-rows: var(--concept-heading-height) minmax(var(--concept-art-height), 1fr) 48px 34px 40px;
  align-content: start;
  justify-items: center;
  padding: 0 14px 18px;
  border: 0;
  border-radius: var(--radius);
  background: #fff5ee;
  box-shadow: inset 0 0 0 1px rgba(168, 70, 18, 0.12);
}

.concept-name-spacer {
  width: 100%;
  height: 48px;
}

@media (min-width: 901px) {
  .concept-property {
    grid-template-rows: minmax(0, 1fr) var(--concept-art-height) 48px 34px 40px minmax(0, 1fr);
  }

  .concept-property > .concept-engraving {
    grid-row: 2;
  }

  .concept-property > h3 {
    grid-row: 3;
  }

  .concept-property > .concept-facts {
    grid-row: 4;
  }

  .concept-property > .button {
    grid-row: 5;
  }

  .concept-uroczysko {
    grid-template-rows: var(--concept-heading-height) minmax(0, 1fr) var(--concept-art-height) 48px 34px 40px minmax(0, 1fr);
  }

  .concept-uroczysko > .concept-group-heading {
    grid-row: 1;
    transform: translateY(18px);
  }

  .concept-uroczysko > .concept-engraving {
    grid-row: 3;
  }

  .concept-uroczysko > .concept-name-spacer {
    grid-row: 4;
  }

  .concept-uroczysko > .concept-facts {
    grid-row: 5;
  }

  .concept-uroczysko > .button {
    grid-row: 6;
  }
}

.concept-uroczysko .concept-group-heading h2 {
  color: var(--rust);
}

.concept-uroczysko .concept-group-heading > span {
  display: block;
  margin: 0 0 8px;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.078rem;
}

.concept-map {
  margin-top: 20px;
  padding-top: 0;
}

.concept-map-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.concept-map-title span {
  height: 1px;
  background: var(--line);
}

.concept-map-title h2 {
  margin: 0;
  font-size: 2.2rem;
}

.concept-map-canvas {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.concept-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.concept-route,
.concept-river {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.concept-route {
  stroke: var(--forest);
  stroke-width: 8;
}

.concept-river {
  display: none;
}

.concept-place {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.concept-place strong {
  font-size: 1.32rem;
  font-weight: 500;
}

.concept-place--weremien {
  top: 11px;
  left: 4%;
}

.concept-place--lesko {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.concept-place--jankowce {
  top: 11px;
  right: 4%;
}

.concept-pin {
  width: 42px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 50% 50% 50% 0;
  color: var(--white);
  background: var(--rust);
  transform: rotate(-45deg);
}

.concept-pin svg {
  width: 23px;
  height: 23px;
  transform: rotate(45deg);
}

.concept-pin--double {
  grid-template-columns: repeat(2, 13px);
  justify-content: center;
}

.concept-pin--double svg {
  width: 15px;
  height: 15px;
}

.concept-dot {
  width: 18px;
  height: 18px;
  margin-top: 15px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 4px var(--forest);
}

.concept-distance {
  position: absolute;
  z-index: 3;
  bottom: 5px;
  left: 20%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.concept-distance svg {
  width: 22px;
  height: 22px;
  color: var(--forest);
}

@media (min-width: 901px) and (max-height: 860px) {
  .concept-home {
    padding-top: 10px;
  }

  .concept-logo img {
    height: 62px;
  }

  .concept-title h1 {
    font-size: 3.19rem;
  }

  .concept-title p {
    font-size: 1.012rem;
  }

  .concept-properties {
    --concept-heading-height: 88px;
    --concept-engraving-height: 190px;
    margin-top: 8px;
  }

  .concept-property {
    grid-template-rows: auto 48px 34px 40px;
  }

  .concept-uroczysko {
    grid-template-rows: var(--concept-heading-height) auto 48px 34px 40px;
  }

  .concept-map-canvas {
    height: 160px;
  }
}

@media (max-width: 900px) {
  .concept-home {
    display: block;
    min-height: 100svh;
    padding: 14px 0 24px;
    overflow: visible;
    background-position: center top;
    background-size: auto 1000px;
  }

  .concept-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .concept-logo {
    width: 190px;
  }

  .concept-logo img {
    height: 58px;
  }

  .concept-title {
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 18px;
  }

  .concept-title h1 {
    font-size: 3.3rem;
  }

  .concept-title p br {
    display: none;
  }

  .concept-book {
    min-height: 46px;
    margin: 0;
  }

  .concept-properties {
    --concept-heading-height: 94px;
    --concept-engraving-height: 250px;
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .concept-engraving {
    height: auto;
    aspect-ratio: 51 / 26;
  }

  .concept-weremien {
    padding: 28px 18px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
  }

  .concept-pair {
    margin-top: 22px;
  }

  .concept-property {
    grid-template-rows: auto 48px auto 40px;
  }

  .concept-uroczysko {
    grid-template-rows: var(--concept-heading-height) auto 48px auto 40px;
  }

  .concept-map {
    margin-top: 28px;
  }
}

@media (max-width: 580px) {
  .concept-properties {
    --concept-heading-height: 90px;
    --concept-engraving-height: 230px;
  }

  .concept-header {
    grid-template-columns: 1fr;
  }

  .concept-logo {
    width: 180px;
    margin-inline: auto;
  }

  .concept-logo img {
    object-position: center;
  }

  .concept-book {
    display: none;
  }

  .concept-title {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }

  .concept-title h1 {
    font-size: 2.915rem;
  }

  .concept-title p {
    font-size: 1.1rem;
  }

  .concept-group-heading h2 {
    font-size: 2.09rem;
  }

  .concept-group-heading h2 span {
    display: none;
  }

  .concept-pair {
    grid-template-columns: 1fr;
  }

  .concept-property {
    grid-template-rows: auto 48px auto 40px;
  }

  .concept-property + .concept-property {
    margin-top: 30px;
    padding-top: 30px;
    border: 0;
    box-shadow: inset 0 1px 0 rgba(168, 70, 18, 0.28);
  }

  .concept-uroczysko {
    grid-template-rows: var(--concept-heading-height) auto 48px auto 40px;
    padding-inline: 33px;
  }

  .concept-map-title h2 {
    font-size: 1.87rem;
  }

  .concept-map-canvas {
    height: 300px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
  }

  .concept-map-lines {
    display: none;
  }

  .concept-place,
  .concept-place--weremien,
  .concept-place--lesko,
  .concept-place--jankowce {
    position: static;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    margin: 18px;
    transform: none;
  }

  .concept-place--lesko {
    justify-content: center;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .concept-place--lesko .concept-dot {
    margin: 0;
  }

  .concept-pin {
    width: 36px;
    height: 42px;
    margin: 0;
  }

  .concept-distance {
    right: 18px;
    bottom: 12px;
    left: 18px;
    justify-content: center;
  }
}

/* Landing page: natural-flow layout based on the approved visual direction. */
body[data-theme="selector"] {
  background: var(--paper);
}

.concept-home {
  display: block;
  min-height: 100svh;
  padding: 24px 0 54px;
  overflow: visible;
  background-color: var(--paper);
  background-image: url("images/start-background.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 1659px auto;
}

.concept-home::before {
  inset: 150px 0 auto;
  height: 610px;
  background-position: center center;
  background-size: max(1440px, 112%) auto;
  opacity: 0.075;
}

.concept-header {
  display: block;
  padding-bottom: clamp(64px, 8vw, 108px);
}

.concept-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.concept-logo {
  width: 260px;
}

.concept-logo img {
  height: 74px;
  object-fit: contain;
  object-position: left center;
}

.concept-book {
  min-width: 174px;
  min-height: 58px;
  margin: 0;
  font-size: 1.375rem;
}

.concept-title {
  max-width: 1080px;
  margin: clamp(54px, 6.5vw, 86px) auto 0;
  text-align: center;
}

.concept-title h1 {
  margin-bottom: 24px;
  font-size: clamp(3.96rem, 5.5vw, 5.17rem);
  line-height: 1;
  white-space: nowrap;
}

.concept-title p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.21rem;
  line-height: 1.5;
}

.concept-properties {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 0;
}

.concept-weremien {
  display: grid;
  height: auto;
  grid-template-rows: auto 1fr;
}

.concept-group-heading {
  min-height: 0;
  padding: 0 0 24px;
}

.concept-group-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(2.42rem, 3.52vw, 3.3rem);
  line-height: 1.05;
}

.concept-group-heading h2 span {
  display: inline-block;
  width: clamp(110px, 10vw, 150px);
  height: 1px;
  margin-inline: clamp(12px, 2vw, 28px);
  color: transparent;
  background: var(--line);
  font-size: 0;
  vertical-align: middle;
}

.concept-group-heading p {
  color: #6d7068;
  font-size: 0.869rem;
  letter-spacing: 0.16em;
}

.concept-pair {
  display: grid;
  height: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 901px) {
  .concept-property {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-rows: auto 228px minmax(42px, auto) 48px;
    gap: 14px;
    align-content: start;
    justify-items: center;
    padding: 16px 30px 24px;
  }

  .concept-property > h3,
  .concept-property > .concept-engraving,
  .concept-property > .concept-facts,
  .concept-property > .button {
    grid-row: auto;
  }
}

.concept-property + .concept-property {
  border: 0;
  box-shadow: inset 1px 0 0 rgba(168, 70, 18, 0.22);
}

.concept-property h3 {
  align-self: auto;
  margin: 0;
  font-size: 1.925rem;
  line-height: 1.15;
}

.concept-engraving {
  width: 100%;
  height: 228px;
  align-self: auto;
  background: transparent;
}

.concept-engraving img {
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.concept-facts {
  min-height: 42px;
  gap: 8px 12px;
  align-content: center;
  margin: 0;
  color: #555b53;
  font-size: 0.902rem;
}

.concept-facts > b {
  width: 1px;
  height: 26px;
  margin: 0 2px;
  overflow: hidden;
  color: transparent;
  background: var(--line);
}

.concept-facts svg {
  width: 19px;
  height: 19px;
  color: #70776f;
}

.concept-property .button,
.concept-uroczysko > .button {
  min-width: 166px;
  min-height: 48px;
  align-self: start;
  padding-inline: 24px;
  font-size: 1.144rem;
}

@media (min-width: 901px) {
  .concept-uroczysko {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-rows: auto 190px 42px 36px 48px;
    gap: 8px;
    align-content: start;
    justify-items: center;
    padding: 30px 28px 36px;
    border-radius: var(--radius);
    background: rgba(255, 245, 238, 0.72);
    box-shadow: inset 0 0 0 1px rgba(168, 70, 18, 0.18);
  }

  .concept-uroczysko > .concept-group-heading,
  .concept-uroczysko > .concept-engraving,
  .concept-uroczysko > .concept-location-strip,
  .concept-uroczysko > .concept-facts,
  .concept-uroczysko > .button {
    grid-row: auto;
  }
}

@media (min-width: 901px) and (min-height: 1251px) {
  .concept-uroczysko > .button {
    transform: translateY(16px);
  }
}

.concept-uroczysko .concept-group-heading {
  align-self: center;
  padding-bottom: 0;
}

.concept-uroczysko .concept-group-heading h2 {
  margin-bottom: 4px;
  color: var(--rust);
  font-size: 2.695rem;
}

.concept-uroczysko .concept-group-heading > span {
  margin: 0;
  color: #9c8170;
  font-size: 1.1rem;
}

.concept-location-strip {
  display: flex;
  width: calc(100% + 56px);
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-inline: -28px;
  padding: 7px 14px;
  color: #625c55;
  background: rgba(168, 70, 18, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(168, 70, 18, 0.18),
    inset 0 -1px 0 rgba(168, 70, 18, 0.18);
  font-size: 0.836rem;
  line-height: 1.2;
  white-space: nowrap;
}

.concept-location-strip strong,
.concept-location-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.concept-location-strip strong {
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.012rem;
}

.concept-location-strip strong svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.concept-location-strip > b {
  width: 1px;
  height: 22px;
  flex: 0 0 1px;
  background: rgba(168, 70, 18, 0.24);
}

.concept-location-strip span i {
  color: var(--rust);
  font-style: normal;
}

.concept-map {
  margin-top: clamp(70px, 8vw, 104px);
  padding-top: 0;
}

.concept-map-title {
  gap: 28px;
  transform: translateY(-42px);
}

.concept-map-title h2 {
  font-size: clamp(2.365rem, 3.52vw, 3.3rem);
}

.concept-map-canvas {
  height: 270px;
  margin-top: 12px;
}

.concept-map-lines {
  transform: translateY(-10px);
}

.concept-place--weremien {
  top: 55px;
}

.concept-place--jankowce {
  top: 45px;
}

.concept-place--lesko {
  top: 43px;
}

.concept-distance {
  right: auto;
  bottom: 10px;
  left: 50%;
  padding: 10px 18px;
  transform: translateX(-50%);
}

.concept-logo:focus-visible,
.concept-book:focus-visible,
.concept-property a:focus-visible,
.concept-uroczysko a:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}

@media (max-width: 1060px) {
  .concept-properties {
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
    gap: 20px;
  }

  .concept-property {
    grid-template-rows: auto 200px minmax(42px, auto) 48px;
    padding-inline: 18px;
  }

  .concept-uroczysko {
    grid-template-rows: auto 168px 40px 36px 48px;
    gap: 8px;
    padding-inline: 20px;
  }

  .concept-location-strip {
    width: calc(100% + 40px);
    min-height: 40px;
    gap: 7px;
    margin-inline: -20px;
    padding-inline: 9px;
    font-size: 0.759rem;
  }

  .concept-location-strip strong {
    font-size: 0.902rem;
  }

  .concept-engraving {
    height: 200px;
  }

  .concept-facts {
    gap: 6px 9px;
    font-size: 0.825rem;
  }
}

@media (max-width: 900px) {
  .concept-home {
    display: block;
    padding: 18px 0 42px;
    overflow: visible;
    background-size: auto 1000px;
  }

  .concept-home::before {
    inset: 160px 0 auto;
    height: 520px;
  }

  .concept-header {
    display: block;
    padding-bottom: 64px;
  }

  .concept-topbar {
    min-height: 74px;
    padding-bottom: 18px;
  }

  .concept-logo {
    width: 210px;
  }

  .concept-logo img {
    height: 62px;
  }

  .concept-title {
    margin-top: 48px;
  }

  .concept-title h1 {
    font-size: clamp(3.3rem, 8.8vw, 4.62rem);
    white-space: normal;
  }

  .concept-title p br {
    display: none;
  }

  .concept-properties {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 0;
  }

  .concept-weremien {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .concept-pair {
    margin-top: 0;
  }

  .concept-property,
  .concept-uroczysko {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-rows: auto 230px minmax(42px, auto) 48px;
    align-content: start;
    justify-items: center;
  }

  .concept-engraving {
    height: 230px;
    aspect-ratio: auto;
  }

  .concept-uroczysko {
    grid-template-rows: auto 210px 44px minmax(42px, auto) 48px;
    gap: 10px;
    padding: 30px 24px 34px;
  }

  .concept-location-strip {
    width: calc(100% + 48px);
    min-height: 44px;
    margin-inline: -24px;
    font-size: 0.88rem;
  }

  .concept-map {
    margin-top: 72px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--content), calc(100% - 32px));
  }

  .concept-topbar {
    align-items: center;
  }

  .concept-logo {
    width: 170px;
    margin: 0;
  }

  .concept-logo img {
    height: 54px;
    object-position: left center;
  }

  .concept-book {
    display: inline-flex;
    min-width: 118px;
    min-height: 46px;
    padding-inline: 16px;
    font-size: 1.1rem;
  }

  .concept-header {
    padding-bottom: 54px;
  }

  .concept-title {
    margin-top: 40px;
  }

  .concept-title h1 {
    margin-bottom: 20px;
    font-size: clamp(2.915rem, 13.2vw, 3.795rem);
  }

  .concept-title p {
    font-size: 1.1rem;
    line-height: 1.55;
  }

  .concept-group-heading {
    padding-bottom: 18px;
  }

  .concept-group-heading h2 {
    font-size: 2.31rem;
  }

  .concept-group-heading h2 span {
    display: none;
  }

  .concept-pair {
    grid-template-columns: 1fr;
  }

  .concept-property {
    grid-template-rows: auto minmax(190px, 52vw) auto 48px;
    gap: 12px;
    padding: 16px 12px 28px;
  }

  .concept-property + .concept-property {
    margin-top: 26px;
    padding-top: 30px;
    box-shadow: inset 0 1px 0 rgba(168, 70, 18, 0.22);
  }

  .concept-property h3 {
    font-size: 1.815rem;
  }

  .concept-engraving {
    height: auto;
    min-height: 190px;
  }

  .concept-facts {
    min-height: 38px;
    font-size: 0.88rem;
  }

  .concept-uroczysko {
    grid-template-rows: auto minmax(190px, 52vw) 48px auto 48px;
    gap: 12px;
    padding: 28px 18px 32px;
  }

  .concept-location-strip {
    width: calc(100% + 36px);
    min-height: 48px;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-inline: -18px;
    padding: 8px 12px;
    white-space: normal;
  }

  .concept-map {
    margin-top: 58px;
  }

  .concept-map-title {
    gap: 14px;
  }

  .concept-map-title h2 {
    font-size: 2.035rem;
  }

  .concept-map-canvas {
    height: 300px;
    margin-top: 20px;
  }

  .concept-place,
  .concept-place--weremien,
  .concept-place--lesko,
  .concept-place--jankowce {
    position: static;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    margin: 18px;
    transform: none;
  }

  .concept-place--lesko {
    justify-content: center;
    padding: 14px 0;
  }

  .concept-distance {
    right: 18px;
    bottom: 12px;
    left: 18px;
    justify-content: center;
    transform: none;
  }
}

/* Compact laptop/desktop view: keep the complete landing page in one Chrome viewport. */
@media (min-width: 901px) and (max-height: 1250px) {
  .concept-home {
    --compact-art-height: clamp(118px, 17svh, 150px);
    height: 100svh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: space-between;
    padding: 10px 0 8px;
    overflow: hidden;
    background-size: 1659px auto;
  }

  .concept-home::before {
    inset: 90px 0 auto;
    height: 420px;
  }

  .concept-header {
    padding-bottom: 8px;
  }

  .concept-topbar {
    min-height: 56px;
    padding-bottom: 8px;
  }

  .concept-logo {
    width: 190px;
  }

  .concept-logo img {
    height: 52px;
  }

  .concept-book {
    min-width: 136px;
    min-height: 44px;
    font-size: 1.1rem;
  }

  .concept-title {
    margin-top: 10px;
  }

  .concept-title h1 {
    margin-bottom: 8px;
    font-size: clamp(2.915rem, 4.62vw, 4.015rem);
  }

  .concept-title p {
    font-size: 0.99rem;
    line-height: 1.3;
  }

  .concept-properties {
    gap: 18px;
  }

  .concept-group-heading {
    padding-bottom: 6px;
  }

  .concept-group-heading h2 {
    margin-bottom: 3px;
    font-size: clamp(2.09rem, 2.86vw, 2.695rem);
  }

  .concept-group-heading h2 span {
    width: clamp(92px, 8vw, 130px);
  }

  .concept-property {
    grid-template-rows: auto var(--compact-art-height) 30px 40px;
    gap: 6px;
    padding: 4px 20px 6px;
  }

  .concept-property h3 {
    font-size: 1.595rem;
  }

  .concept-engraving {
    height: var(--compact-art-height);
  }

  .concept-facts {
    min-height: 30px;
    flex-wrap: nowrap;
    font-size: 0.792rem;
  }

  .concept-facts svg {
    width: 16px;
    height: 16px;
  }

  .concept-facts > b {
    height: 20px;
  }

  .concept-property .button,
  .concept-uroczysko > .button {
    min-width: 148px;
    min-height: 40px;
    font-size: 1.012rem;
  }

  .concept-uroczysko {
    grid-template-rows: auto clamp(102px, 13svh, 118px) 32px 28px 40px;
    gap: 4px;
    padding: 8px 20px 10px;
  }

  .concept-uroczysko .concept-engraving {
    height: clamp(102px, 13svh, 118px);
  }

  .concept-location-strip {
    min-height: 32px;
    padding-block: 4px;
    font-size: 0.715rem;
  }

  .concept-location-strip strong {
    font-size: 0.836rem;
  }

  .concept-location-strip strong svg {
    width: 14px;
    height: 14px;
  }

  .concept-location-strip > b {
    height: 18px;
  }

  .concept-uroczysko .concept-group-heading h2 {
    font-size: 2.2rem;
  }

  .concept-uroczysko .concept-group-heading > span {
    font-size: 0.935rem;
  }

  .concept-map {
    margin-top: 6px;
  }

  .concept-map-title {
    gap: 20px;
  }

  .concept-map-title h2 {
    font-size: 2.2rem;
  }

  .concept-map-canvas {
    height: clamp(128px, 18svh, 150px);
    margin-top: 0;
  }

  .concept-map-lines {
    transform: translateY(-22px);
  }

  .concept-place--weremien {
    top: 27px;
  }

  .concept-place--jankowce {
    top: 17px;
  }

  .concept-place--lesko {
    top: 15px;
  }

  .concept-place strong {
    font-size: 1.1rem;
  }

  .concept-pin {
    width: 34px;
    height: 40px;
  }

  .concept-pin svg {
    width: 19px;
    height: 19px;
  }

  .concept-distance {
    bottom: 0;
    padding: 6px 12px;
    font-size: 0.968rem;
  }
}

/* Desktop: keep the location callout inside the Uroczysko card at its bottom edge. */
@media (min-width: 901px) {
  .concept-uroczysko {
    position: relative;
  }

  .concept-uroczysko > .concept-group-heading {
    grid-row: 1;
  }

  .concept-uroczysko > .concept-engraving {
    grid-row: 2;
    overflow: visible;
  }

  .concept-uroczysko > .concept-engraving img {
    transform: translateY(clamp(32px, 3svh, 49px));
  }

  .concept-uroczysko > .concept-facts {
    grid-row: 4;
  }

  .concept-uroczysko > .button {
    grid-row: 5;
  }

  .concept-uroczysko > .concept-location-strip {
    position: absolute;
    right: 1px;
    bottom: 1px;
    left: 1px;
    width: auto;
    margin: 0;
    border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  }
}

@media (min-width: 1400px) {
  .concept-uroczysko > .concept-engraving img {
    transform: translateY(38px) scale(1.35);
    transform-origin: center center;
  }
}

/*
 * Responsive landing foundation.
 *
 * This final layer deliberately replaces the earlier viewport-height tuning.
 * The content now follows normal document flow, so a shorter browser window
 * scrolls instead of compressing and overlapping the cards and map.
 */
body[data-theme="selector"] {
  overflow-x: hidden;
}

.concept-home {
  --concept-art-height: clamp(184px, 16vw, 228px);
  display: block;
  width: 100%;
  height: auto;
  min-height: 100svh;
  padding: clamp(14px, 1.5vw, 24px) 0 clamp(40px, 5vw, 72px);
  overflow: visible;
}

.concept-header {
  display: block;
  padding-bottom: clamp(54px, 7vw, 98px);
}

.concept-topbar {
  min-height: clamp(64px, 7vw, 86px);
  padding-bottom: clamp(14px, 1.8vw, 24px);
}

.concept-logo {
  width: clamp(180px, 18vw, 260px);
}

.concept-logo img {
  height: clamp(54px, 5.2vw, 74px);
}

.concept-book {
  min-width: clamp(132px, 12vw, 174px);
  min-height: clamp(46px, 4.2vw, 58px);
  font-size: clamp(1.1rem, 1.375vw, 1.375rem);
}

.concept-title {
  margin-top: clamp(40px, 5.5vw, 78px);
}

.concept-title h1 {
  margin-bottom: clamp(16px, 1.8vw, 24px);
  font-size: clamp(3.19rem, 5.5vw, 5.17rem);
  white-space: normal;
}

.concept-properties {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: clamp(20px, 2vw, 30px);
  align-items: stretch;
  margin-top: 0;
}

.concept-weremien {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-rows: auto 1fr;
}

.concept-group-heading {
  min-height: 0;
  padding-bottom: clamp(16px, 1.7vw, 24px);
}

.concept-group-heading h2 span {
  width: clamp(100px, 10vw, 160px);
}

.concept-weremien > .concept-group-heading h2 {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 26px);
  white-space: nowrap;
}

.concept-weremien > .concept-group-heading h2 span {
  width: auto;
  max-width: 160px;
  flex: 1 1 100px;
  margin: 0;
}

.concept-pair {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.concept-property {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-rows: auto var(--concept-art-height) minmax(42px, auto) 48px;
  gap: 14px;
  align-content: start;
  justify-items: center;
  padding: 16px clamp(18px, 2vw, 30px) 24px;
}

.concept-property > h3,
.concept-property > .concept-engraving,
.concept-property > .concept-facts,
.concept-property > .button {
  grid-row: auto;
}

.concept-engraving,
.concept-property .concept-engraving,
.concept-uroczysko .concept-engraving {
  display: flex;
  width: 100%;
  height: var(--concept-art-height);
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.concept-engraving img,
.concept-property .concept-engraving img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  transform-origin: center;
}

.concept-uroczysko {
  position: static;
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-rows: auto var(--concept-art-height) minmax(42px, auto) 48px minmax(44px, 1fr);
  gap: 12px;
  align-content: start;
  justify-items: center;
  padding: clamp(24px, 2vw, 30px) clamp(20px, 2vw, 28px) 0;
  border-radius: var(--radius);
  background: rgba(255, 245, 238, 0.72);
  box-shadow: inset 0 0 0 1px rgba(168, 70, 18, 0.18);
}

.concept-uroczysko > .concept-group-heading,
.concept-uroczysko > .concept-engraving,
.concept-uroczysko > .concept-facts,
.concept-uroczysko > .button,
.concept-uroczysko > .concept-location-strip {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin: 0;
  transform: none;
}

.concept-uroczysko > .concept-group-heading {
  grid-row: 1;
}

.concept-uroczysko > .concept-engraving {
  grid-row: 2;
}

.concept-uroczysko > .concept-facts {
  grid-row: 3;
  width: auto;
}

.concept-uroczysko > .button {
  grid-row: 4;
  width: auto;
  transform: none;
}

.concept-uroczysko > .concept-location-strip {
  grid-row: 5;
  align-self: end;
  width: calc(100% + clamp(40px, 4vw, 56px));
  min-height: 44px;
  margin-top: 8px;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.concept-uroczysko > .concept-engraving img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: center;
}

.concept-location-strip {
  display: flex;
  justify-content: center;
  white-space: normal;
}

.concept-map {
  margin-top: clamp(54px, 7vw, 94px);
  padding-top: 0;
}

.concept-map-title {
  gap: clamp(16px, 2vw, 28px);
  transform: none;
}

.concept-map-canvas {
  height: clamp(250px, 22vw, 280px);
  margin-top: clamp(8px, 1.2vw, 16px);
}

.concept-map-lines {
  transform: none;
}

.concept-place--weremien {
  top: 55px;
}

.concept-place--jankowce {
  top: 45px;
}

.concept-place--lesko {
  top: 43px;
}

.concept-distance {
  right: auto;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .concept-home {
    --concept-art-height: clamp(200px, 26vw, 250px);
  }

  .concept-properties {
    grid-template-columns: 1fr;
    gap: clamp(34px, 5vw, 54px);
  }

  .concept-uroczysko {
    width: min(100%, 720px);
    justify-self: center;
    grid-template-columns: minmax(0, 1fr);
  }

  .concept-uroczysko > .concept-engraving img {
    transform: scale(1.12);
  }

  .concept-location-strip {
    font-size: 0.858rem;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--content), calc(100% - 32px));
  }

  .concept-home {
    --concept-art-height: clamp(190px, 54vw, 260px);
    padding-top: 12px;
    background-size: auto 1050px;
  }

  .concept-header {
    padding-bottom: 52px;
  }

  .concept-logo {
    width: clamp(145px, 42vw, 190px);
    margin: 0;
  }

  .concept-logo img {
    height: clamp(48px, 13vw, 60px);
  }

  .concept-book {
    display: inline-flex;
    min-width: 112px;
    min-height: 44px;
    margin: 0;
    padding-inline: 16px;
  }

  .concept-title {
    margin-top: 36px;
  }

  .concept-title h1 {
    font-size: clamp(2.695rem, 12.65vw, 3.795rem);
    line-height: 1.02;
  }

  .concept-title p {
    font-size: 1.078rem;
    line-height: 1.5;
  }

  .concept-title p br {
    display: none;
  }

  .concept-group-heading h2 {
    font-size: clamp(2.035rem, 9.35vw, 2.42rem);
  }

  .concept-group-heading h2 span {
    display: none;
  }

  .concept-pair {
    grid-template-columns: 1fr;
  }

  .concept-property {
    grid-template-rows: auto var(--concept-art-height) auto 48px;
    gap: 12px;
    padding: 16px 12px 28px;
  }

  .concept-property + .concept-property {
    margin-top: 26px;
    padding-top: 30px;
    box-shadow: inset 0 1px 0 rgba(168, 70, 18, 0.22);
  }

  .concept-uroczysko {
    grid-template-rows: auto var(--concept-art-height) auto 48px auto;
    gap: 12px;
    padding: 28px 18px 0;
  }

  .concept-uroczysko > .concept-location-strip {
    width: calc(100% + 36px);
    min-height: 52px;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 9px 12px;
  }

  .concept-map {
    margin-top: 54px;
  }

  .concept-map-title h2 {
    font-size: clamp(1.925rem, 8.8vw, 2.2rem);
    white-space: nowrap;
  }

  .concept-map-canvas {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 18px;
    padding: 4px 0 14px;
  }

  .concept-map-lines {
    display: none;
  }

  .concept-place,
  .concept-place--weremien,
  .concept-place--lesko,
  .concept-place--jankowce {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 16px;
    margin: 0;
    padding: 16px 14px;
    transform: none;
  }

  .concept-place--lesko {
    justify-content: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .concept-place--jankowce {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .concept-pin {
    width: 36px;
    height: 42px;
    margin: 0;
  }

  .concept-distance {
    position: static;
    width: fit-content;
    justify-self: center;
    margin-top: 8px;
    transform: none;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 24px);
  }

  .concept-logo {
    width: 138px;
  }

  .concept-logo img {
    height: 46px;
  }

  .concept-book {
    min-width: 100px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 1.034rem;
  }

  .concept-title h1 {
    font-size: clamp(2.42rem, 12.1vw, 3.08rem);
  }

  .concept-facts {
    flex-wrap: wrap;
    justify-content: center;
  }

  .concept-location-strip > b {
    display: none;
  }
}

/* Scale the complete desktop map composition as one fixed visual block. */
@media (min-width: 701px) {
  .concept-home {
    background-image: none;
    background-position: center bottom;
  }

  .concept-map-canvas[data-scalable-map] {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: visible;
  }

  .concept-map-stage {
    position: absolute;
    top: 0;
    left: 0;
    isolation: isolate;
    width: 1200px;
    height: 280px;
    overflow: visible;
    transform: scale(1);
    transform-origin: top left;
  }

  .concept-map-stage::before {
    position: absolute;
    z-index: -1;
    inset: -24px 0;
    content: "";
    background-image: url("images/start-background.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 1200px auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  }

  .concept-map-stage .concept-map-lines {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 700px) {
  .concept-map-stage {
    display: contents;
  }
}

/* Option 4 — Architect's Table. Scoped to the selector landing page. */
.architect-home {
  --content: 1380px;
  --architect-rule: rgba(114, 102, 83, 0.32);
  --architect-dash: rgba(168, 70, 18, 0.28);
  position: relative;
  min-height: 100svh;
  padding: 20px 0 32px;
  background-color: #f7f3eb;
  background-image: none;
}

.architect-home::before {
  position: absolute;
  z-index: 0;
  top: 112px;
  right: 0;
  left: 0;
  display: block;
  height: 560px;
  content: "";
  background-image: url("images/hills-engraving-page-light.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: max(1180px, 100vw) auto;
  opacity: 0.18;
  pointer-events: none;
}

.architect-home > *:not(.architect-axis) {
  position: relative;
  z-index: 1;
}

.architect-home .container {
  width: min(var(--content), calc(100% - 80px));
}

.architect-axis {
  position: absolute;
  z-index: 2;
  top: 138px;
  bottom: auto;
  left: max(18px, calc((100vw - 1480px) / 2));
  display: flex;
  width: 70px;
  height: 726px;
  justify-content: space-between;
  flex-direction: column;
  padding-right: 16px;
  border-right: 1px dashed var(--architect-rule);
  color: #55584f;
  font-size: 0.792rem;
  line-height: 1;
  pointer-events: none;
}

.architect-home .concept-header {
  padding-bottom: 26px;
}

.architect-home .concept-topbar {
  min-height: 84px;
  padding-bottom: 18px;
  border-bottom-color: var(--architect-rule);
}

.architect-home .concept-logo {
  width: clamp(190px, 18vw, 250px);
}

.architect-home .concept-logo img {
  height: clamp(56px, 5vw, 70px);
}

.architect-home .concept-book {
  min-width: 154px;
  min-height: 54px;
  border-radius: 4px;
  font-size: 1.265rem;
}

.architect-home .concept-title {
  max-width: 960px;
  margin-top: clamp(28px, 3vw, 42px);
}

.architect-home .concept-title h1 {
  margin-bottom: 14px;
  font-size: clamp(3.52rem, 4.785vw, 4.84rem);
  line-height: 1;
}

.architect-home .concept-title p {
  max-width: 680px;
  font-size: clamp(1.078rem, 1.265vw, 1.232rem);
  line-height: 1.42;
}

.architect-home .concept-properties {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--architect-rule);
  border-bottom: 1px solid var(--architect-rule);
}

.architect-home .concept-weremien {
  border-right: 1px dashed var(--architect-dash);
}

.architect-home .concept-group-heading {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px 20px 8px;
}

.architect-home .concept-group-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(2.2rem, 3.135vw, 3.08rem);
  line-height: 1.08;
}

.architect-home .concept-weremien > .concept-group-heading h2 {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
}

.architect-home .concept-weremien > .concept-group-heading h2 span {
  width: auto;
  max-width: 280px;
  height: 1px;
  flex: 1 1 160px;
  margin: 0;
  background: var(--architect-rule);
}

.architect-home .concept-group-heading p {
  margin: 0;
  color: #696c64;
  font-size: 0.814rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.architect-home .concept-location-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  width: 100%;
}

.architect-home .concept-location-label > span:first-child {
  text-align: right;
}

.architect-home .concept-location-label > span:last-child {
  text-align: left;
}

.architect-home .concept-location-label > b {
  margin: 0;
  letter-spacing: 0;
}

.architect-home .concept-pair {
  min-height: 390px;
}

.architect-home .concept-property {
  min-height: 390px;
  grid-template-rows: 44px 210px 46px 48px;
  gap: 8px;
  align-content: start;
  padding: 12px 28px 20px;
}

.architect-home .concept-property + .concept-property {
  border-left: 1px dashed var(--architect-dash);
  box-shadow: none;
}

.architect-home .concept-property h3 {
  align-self: center;
  margin: 0;
  font-size: clamp(1.595rem, 2.145vw, 2.09rem);
}

.architect-home .concept-engraving,
.architect-home .concept-property .concept-engraving,
.architect-home .concept-uroczysko .concept-engraving {
  height: 210px;
  min-height: 0;
}

.architect-home .concept-engraving img,
.architect-home .concept-property .concept-engraving img,
.architect-home .concept-uroczysko > .concept-engraving img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  transform-origin: center bottom;
  transition: transform 240ms ease, filter 240ms ease;
}

/* Lift the artwork without moving the surrounding layout. */
.architect-home .concept-engraving:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.architect-home .concept-engraving:focus-visible img {
  filter: drop-shadow(0 8px 6px rgba(31, 48, 29, 0.18));
}

@media (hover: hover) and (pointer: fine) {
  .architect-home .concept-engraving:hover img {
    filter: drop-shadow(0 8px 6px rgba(31, 48, 29, 0.18));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .architect-home .concept-engraving:focus-visible img {
    transform: translateY(-6px) scale(1.04);
  }

  @media (hover: hover) and (pointer: fine) {
    .architect-home .concept-engraving:hover img {
      transform: translateY(-6px) scale(1.04);
    }
  }
}

.architect-home .concept-facts {
  min-height: 46px;
  flex-wrap: nowrap;
  gap: 8px 12px;
  font-size: clamp(0.792rem, 0.935vw, 0.924rem);
}

.architect-home .concept-facts > b {
  height: 24px;
}

.architect-home .concept-property .button,
.architect-home .concept-uroczysko > .button {
  min-width: 172px;
  min-height: 48px;
  border-radius: 4px;
  font-size: 1.1rem;
}

.architect-home .concept-uroczysko {
  position: relative;
  min-height: 478px;
  display: grid;
  grid-template-rows: 88px 210px 46px 48px 46px;
  gap: 8px;
  align-content: start;
  justify-items: center;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.architect-home .concept-uroczysko .concept-group-heading {
  grid-row: 1;
  width: 100%;
  padding: 10px 0 8px;
}

.architect-home .concept-uroczysko .concept-group-heading h2 {
  margin-bottom: 2px;
  color: var(--rust);
  font-size: clamp(2.365rem, 3.135vw, 3.08rem);
}

.architect-home .concept-uroczysko .concept-group-heading > span {
  color: #947a69;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.056rem;
}

.architect-home .concept-uroczysko > .concept-engraving {
  grid-row: 2;
}

.architect-home .concept-uroczysko > .concept-facts {
  grid-row: 3;
}

.architect-home .concept-uroczysko > .button {
  grid-row: 4;
}

.architect-home .concept-uroczysko > .concept-location-strip {
  position: static;
  width: 100%;
  min-height: 46px;
  grid-row: 5;
  align-self: end;
  margin: 0;
  padding: 8px 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 var(--architect-rule);
  font-size: clamp(0.704rem, 0.803vw, 0.814rem);
}

.architect-home .concept-location-strip strong {
  font-size: clamp(0.858rem, 0.99vw, 1.034rem);
}

.architect-home .concept-map {
  margin-top: 0;
  padding-top: 0;
}

.architect-home .concept-map-title {
  min-height: 48px;
  gap: 20px;
}

.architect-home .concept-map-title span {
  background: var(--architect-rule);
}

.architect-home .concept-map-title h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.08vw, 2.915rem);
}

.architect-home .concept-map-canvas[data-scalable-map] {
  height: 150px;
  margin-top: 0;
}

.architect-home .concept-map-stage {
  left: 50%;
  height: 150px;
  transform-origin: top center;
}

.architect-home .concept-map-stage::before {
  inset: -20px 0 0;
  background-size: 1200px auto;
  opacity: 0.16;
}

.architect-home .concept-map-reference {
  position: absolute;
  z-index: 0;
  top: -28px;
  left: 50%;
  width: 430px;
  height: 190px;
  object-fit: contain;
  filter: grayscale(1) sepia(0.18) contrast(0.88);
  opacity: 0.34;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  pointer-events: none;
}

.architect-home .concept-map-stage .concept-map-lines {
  z-index: 1;
  height: 150px;
  transform: translateY(-32px);
}

.architect-home .concept-place small {
  margin-top: 2px;
  color: #75786f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.638rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.architect-home .concept-place--lesko small {
  margin-top: 12px;
}

.architect-home .concept-place--weremien {
  top: 16px;
  left: 95px;
}

.architect-home .concept-place--lesko {
  top: 5px;
}

.architect-home .concept-place--jankowce {
  top: 16px;
  right: 86px;
}

.architect-home .concept-distance {
  bottom: 12px;
}

@media (max-width: 1220px) {
  .architect-axis {
    display: none;
  }

  .architect-home .container {
    width: min(var(--content), calc(100% - 48px));
  }

  .architect-home .concept-properties {
    grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
  }

  .architect-home .concept-property,
  .architect-home .concept-uroczysko {
    padding-inline: 18px;
  }

  .architect-home .concept-location-strip {
    gap: 6px;
  }
}

@media (max-width: 980px) {
  .architect-home .concept-properties {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .architect-home .concept-weremien {
    border-right: 0;
    border-bottom: 1px solid var(--architect-rule);
  }

  .architect-home .concept-uroczysko {
    width: 100%;
    min-height: 420px;
    grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.1fr);
    grid-template-rows: 80px 210px 48px 46px;
    column-gap: 24px;
    padding: 0 24px 18px;
    border-bottom: 1px solid var(--architect-rule);
  }

  .architect-home .concept-uroczysko .concept-group-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .architect-home .concept-uroczysko > .concept-engraving {
    grid-column: 1;
    grid-row: 2 / 5;
    height: 250px;
    align-self: center;
  }

  .architect-home .concept-uroczysko > .concept-facts {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  .architect-home .concept-uroczysko > .button {
    grid-column: 2;
    grid-row: 3;
  }

  .architect-home .concept-uroczysko > .concept-location-strip {
    grid-column: 2;
    grid-row: 4;
  }
}

@media (max-width: 700px) {
  .architect-home {
    padding-top: 10px;
    background-position: center 90px;
    background-size: auto 760px;
  }

  .architect-home .container {
    width: calc(100% - 28px);
  }

  .architect-home .concept-header {
    padding-bottom: 34px;
  }

  .architect-home .concept-topbar {
    min-height: 66px;
    padding-bottom: 10px;
  }

  .architect-home .concept-logo {
    width: clamp(140px, 39vw, 172px);
  }

  .architect-home .concept-logo img {
    height: 48px;
  }

  .architect-home .concept-book {
    min-width: 104px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 1.045rem;
  }

  .architect-home .concept-title {
    margin-top: 28px;
  }

  .architect-home .concept-title h1 {
    font-size: clamp(2.585rem, 12.1vw, 3.3rem);
  }

  .architect-home .concept-title p {
    font-size: 1.034rem;
  }

  .architect-home .concept-properties {
    border-top-color: var(--architect-rule);
  }

  .architect-home .concept-group-heading {
    min-height: 76px;
    padding-inline: 6px;
  }

  .architect-home .concept-weremien > .concept-group-heading h2 {
    white-space: normal;
  }

  .architect-home .concept-weremien > .concept-group-heading h2 span {
    display: none;
  }

  .architect-home .concept-pair {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .architect-home .concept-property {
    min-height: 0;
    grid-template-rows: 40px minmax(190px, 56vw) auto 48px;
    gap: 10px;
    padding: 18px 12px 28px;
  }

  .architect-home .concept-property + .concept-property {
    margin: 0;
    padding-top: 24px;
    border-top: 1px dashed var(--architect-dash);
    border-left: 0;
  }

  .architect-home .concept-engraving,
  .architect-home .concept-property .concept-engraving,
  .architect-home .concept-uroczysko .concept-engraving {
    height: auto;
    min-height: 190px;
  }

  .architect-home .concept-facts {
    min-height: 42px;
    flex-wrap: wrap;
    font-size: 0.858rem;
  }

  .architect-home .concept-uroczysko {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 76px minmax(190px, 56vw) auto 48px auto;
    gap: 10px;
    padding: 0 12px 0;
  }

  .architect-home .concept-uroczysko .concept-group-heading,
  .architect-home .concept-uroczysko > .concept-engraving,
  .architect-home .concept-uroczysko > .concept-facts,
  .architect-home .concept-uroczysko > .button,
  .architect-home .concept-uroczysko > .concept-location-strip {
    grid-column: 1;
  }

  .architect-home .concept-uroczysko .concept-group-heading {
    grid-row: 1;
  }

  .architect-home .concept-uroczysko > .concept-engraving {
    grid-row: 2;
    height: auto;
  }

  .architect-home .concept-uroczysko > .concept-facts {
    grid-row: 3;
    align-self: center;
  }

  .architect-home .concept-uroczysko > .button {
    grid-row: 4;
  }

  .architect-home .concept-uroczysko > .concept-location-strip {
    width: calc(100% + 24px);
    grid-row: 5;
    margin-inline: -12px;
    padding: 10px 12px;
    box-shadow: inset 0 1px 0 var(--architect-rule);
  }

  .architect-home .concept-map-title {
    min-height: 64px;
  }

  .architect-home .concept-map-canvas[data-scalable-map] {
    height: auto;
  }

  .architect-home .concept-map-stage {
    height: auto;
  }

  .architect-home .concept-map-reference {
    display: none;
  }

  .architect-home .concept-place small,
  .architect-home .concept-place--lesko small {
    margin: 0 0 0 auto;
    font-size: 0.616rem;
  }
}

@media (max-width: 420px) {
  .architect-home .concept-logo {
    width: 132px;
  }

  .architect-home .concept-book {
    min-width: 96px;
  }

  .architect-home .concept-title h1 {
    font-size: clamp(2.255rem, 11.55vw, 2.75rem);
  }

  .architect-home .concept-location-strip > b {
    display: none;
  }
}

/* Modern web-style location card */
.architect-home .concept-map {
  margin-top: 14px;
  padding-bottom: 42px;
}

.architect-home .concept-map-title {
  min-height: auto;
  margin-bottom: 18px;
  align-items: center;
}

.architect-home .concept-map-title > div {
  flex: 0 0 auto;
  text-align: center;
}

.architect-home .concept-map-title h2 {
  font-size: clamp(2.2rem, 3.08vw, 2.915rem);
}

.architect-home .concept-map-title p {
  margin: 4px 0 0;
  color: #77766f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.858rem;
  letter-spacing: 0.02em;
}

.architect-home .web-route-card {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(370px, 0.64fr);
  height: 300px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(25, 56, 32, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 46px rgba(31, 45, 34, 0.09);
}

.architect-home .web-route-map {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e9f1e6;
}

.architect-home .web-route-map::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(250, 247, 240, 0.38));
  content: "";
  pointer-events: none;
}

.architect-home .web-route-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.68) sepia(0.08) contrast(0.96);
  transform: scale(1.06);
  transform-origin: right center;
}

.architect-home .web-route-badge {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(30, 49, 36, 0.16);
  color: var(--forest);
  font-family: Arial, Helvetica, sans-serif;
  backdrop-filter: blur(10px);
}

.architect-home .web-route-badge svg {
  width: 20px;
  height: 20px;
  grid-row: 1 / 3;
  stroke-width: 1.8;
}

.architect-home .web-route-badge strong {
  font-size: 0.946rem;
  line-height: 1.1;
}

.architect-home .web-route-badge span {
  color: #73776f;
  font-size: 0.748rem;
  line-height: 1.2;
}

.architect-home .web-route-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 28px 30px;
}

.architect-home .web-route-location {
  display: flex;
  gap: 14px;
  align-items: center;
}

.architect-home .web-route-location > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.architect-home .web-route-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eef1e9;
  color: var(--forest);
}

.architect-home .web-route-location--destination .web-route-icon {
  background: #fbebe1;
  color: var(--rust);
}

.architect-home .web-route-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.architect-home .web-route-location small {
  overflow: hidden;
  color: #7a7a72;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.759rem;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.architect-home .web-route-location strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.463rem;
  line-height: 1.1;
}

.architect-home .web-route-location--destination strong {
  color: var(--rust);
}

.architect-home .web-route-journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: #9b9e95;
}

.architect-home .web-route-journey span {
  height: 1px;
  background: #d7d9d2;
}

.architect-home .web-route-journey svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 860px) {
  .architect-home .web-route-card {
    height: auto;
    grid-template-columns: 1fr;
  }

  .architect-home .web-route-map,
  .architect-home .web-route-map img {
    min-height: 230px;
  }

  .architect-home .web-route-summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    padding: 22px 24px;
  }

  .architect-home .web-route-journey {
    grid-template-columns: auto;
  }

  .architect-home .web-route-journey span {
    display: none;
  }
}

@media (max-width: 600px) {
  .architect-home .concept-map {
    margin-top: 24px;
    padding-bottom: 28px;
  }

  .architect-home .concept-map-title {
    gap: 12px;
    margin-bottom: 14px;
  }

  .architect-home .concept-map-title p {
    max-width: 220px;
    margin-inline: auto;
    line-height: 1.35;
  }

  .architect-home .web-route-card {
    border-radius: 14px;
  }

  .architect-home .web-route-map,
  .architect-home .web-route-map img {
    min-height: 210px;
  }

  .architect-home .web-route-map img {
    object-position: 56% center;
    transform: none;
  }

  .architect-home .web-route-summary {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .architect-home .web-route-journey {
    grid-template-columns: 1fr auto 1fr;
    transform: rotate(90deg);
  }

  .architect-home .web-route-journey span {
    display: block;
  }

  .architect-home .web-route-location--destination {
    flex-direction: row-reverse;
    text-align: right;
  }

  .architect-home .web-route-location--destination > span:last-child {
    align-items: flex-end;
  }
}
