:root {
  --ink: #17202a;
  --text: #334155;
  --muted: #667085;
  --line: #d7dee8;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --blue: #173f63;
  --blue-2: #246084;
  --green: #2f6f5e;
  --gold: #b6802a;
  --red: #9f3a38;
  --active-wash: #fff8e8;
  --active-line: #d79a31;
  --active-focus: #2f7f73;
  --active-field: #ffffff;
  --shadow: 0 14px 36px rgba(20, 31, 43, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--wash);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.nav a,
.nav-trigger {
  border-radius: 6px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav-trigger:hover {
  background: #eef3f7;
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown:has([aria-current="page"]) .nav-trigger {
  background: #eef3f7;
  color: var(--blue);
}

.nav-menu a {
  white-space: nowrap;
}

.nav-menu .nav-subitem {
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero {
  width: min(1320px, calc(100% - 32px));
  min-height: clamp(420px, 58vh, 580px);
  margin: 18px auto 0;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 28, 40, 0.96), rgba(16, 28, 40, 0.68) 38%, rgba(16, 28, 40, 0.22) 64%, rgba(16, 28, 40, 0.72)),
    url("../img/buildings/mnichovo-hradiste-csl-armady-1150.png") center/cover;
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 72px 0 48px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d6e5ee;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  color: var(--ink);
}

h3 {
  font-size: 1.25rem;
  color: var(--ink);
}

.lead {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.btn-quiet {
  background: var(--paper);
  border-color: var(--line);
  color: var(--blue);
}

.section {
  padding: 64px 0;
}

.section-compact {
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.tree-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tree-card,
.info-card,
.offer-card,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(20, 31, 43, 0.04);
}

.tree-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
}

.tree-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.tree-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8edf2, #d4dde8);
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tree-body {
  padding: 18px;
}

.tree-body p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tree-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.tree-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.context-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.info-card {
  padding: 22px;
}

.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.address-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.address-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.filters {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(183, 128, 42, 0.45);
  border-left: 6px solid var(--active-line);
  border-radius: var(--radius);
  background: var(--active-wash);
  box-shadow: 0 1px 0 rgba(20, 31, 43, 0.04);
}

.filters label,
.contact-form label {
  display: grid;
  gap: 5px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #43505f;
  font-size: 0.85rem;
  font-weight: 700;
}

.filters input,
.filters select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 42px;
  border: 2px solid rgba(183, 128, 42, 0.62);
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--active-field);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(20, 31, 43, 0.06);
}

.filters input:focus,
.filters select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.questionnaire-form input:focus,
.questionnaire-form select:focus,
.questionnaire-form textarea:focus {
  border-color: var(--active-focus);
  outline: 3px solid rgba(47, 127, 115, 0.18);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(47, 127, 115, 0.22);
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.result-count,
.muted {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.offer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offer-media {
  position: relative;
  overflow: hidden;
}

.offer-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8edf2;
}

.expandable-image {
  cursor: zoom-in;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.offer-media:hover .expandable-image {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.zoom-hint {
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.offer-media:hover .zoom-hint {
  opacity: 1;
}

.status {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
}

.status-available {
  background: var(--green);
}

.status-reserved {
  background: var(--gold);
}

.status-rented,
.status-sold {
  background: var(--red);
}

.image-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.8rem;
}

.image-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.offer-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.offer-detail {
  margin-top: 0;
  font-size: 0.95rem;
}

.offer-kicker {
  margin-bottom: 7px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.address,
.fees,
.offer-body p {
  color: var(--muted);
}

.price {
  margin: 14px 0 2px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.price-perm2 {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.facts div {
  min-width: 0;
}

.facts dt {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.facts dd {
  margin: 2px 0 0;
  color: var(--ink);
}

.area-details {
  margin-top: 2px;
}

.area-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.area-details summary::-webkit-details-marker {
  display: none;
}

.area-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--blue);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.room-areas {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 9px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.room-areas li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.room-areas strong {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.chips span {
  border: 1px solid #d9e4dd;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--green);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.offer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
}

.text-link {
  color: var(--blue);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(10, 16, 24, 0.88);
}

.lightbox.open {
  display: flex;
}

.has-lightbox {
  overflow: hidden;
}

.lightbox-img {
  max-width: min(1120px, 88vw);
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.form-status {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.form-status-ok {
  background: #eaf5f0;
  border: 1px solid #b0d9c8;
  color: var(--green);
}

.form-status-err {
  background: #fdf0f0;
  border: 1px solid #e8bfbf;
  color: var(--red);
}

.contact-band {
  background: #e9eef3;
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.contact-form {
  padding: 22px;
  display: grid;
  gap: 12px;
  border-color: rgba(183, 128, 42, 0.45);
  border-left: 6px solid var(--active-line);
  background: var(--active-wash);
}

.check {
  display: flex !important;
  align-items: flex-start;
  grid-template-columns: auto 1fr;
  gap: 9px !important;
  font-weight: 500 !important;
}

.check input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.questionnaire-hero {
  padding: 72px 0 44px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 31, 43, 0.9), rgba(20, 31, 43, 0.58)),
    url("../img/interiors/kuchyne-z-obyvaciho-pokoje-3-1.jpg") center/cover;
}

.questionnaire-hero h1 {
  max-width: 840px;
}

.questionnaire-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.contracts-hero {
  background:
    linear-gradient(90deg, rgba(20, 31, 43, 0.9), rgba(20, 31, 43, 0.58)),
    url("../img/interiors/vstupni-chodba-3-1.jpg") center/cover;
}

.contract-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contract-card,
.contract-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(20, 31, 43, 0.04);
}

.contract-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  text-decoration: none;
}

.contract-card p {
  margin: 0;
  color: var(--muted);
}

.contract-tag {
  color: var(--blue);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contract-list {
  display: grid;
  gap: 18px;
}

.contract-preview {
  scroll-margin-top: 110px;
  padding: 28px;
}

.contract-head p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.contract-clauses {
  margin: 22px 0 0;
  padding-left: 22px;
}

.contract-clauses li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.signi-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  align-items: start;
}

.signi-note {
  position: sticky;
  top: 92px;
}

.signi-form fieldset {
  background: var(--paper);
}

.document-checks {
  display: grid;
  gap: 10px;
}

.questionnaire-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.questionnaire-note {
  position: sticky;
  top: 92px;
}

.questionnaire-form {
  display: grid;
  gap: 16px;
}

.questionnaire-form fieldset {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(183, 128, 42, 0.45);
  border-left: 6px solid var(--active-line);
  border-radius: var(--radius);
  background: var(--active-wash);
}

.questionnaire-form legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.questionnaire-form label {
  display: grid;
  gap: 6px;
  color: #43505f;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.questionnaire-form input,
.questionnaire-form select,
.questionnaire-form textarea {
  width: 100%;
  min-height: 42px;
  border: 2px solid rgba(183, 128, 42, 0.62);
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--active-field);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(20, 31, 43, 0.06);
}

.questionnaire-form textarea {
  min-height: 104px;
  resize: vertical;
}

.legal-copy {
  margin: 0 0 12px;
  color: var(--text);
}

.questionnaire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 0;
}

@media print {
  .site-header,
  .questionnaire-hero .actions,
  .questionnaire-actions,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .questionnaire-hero {
    padding: 0 0 18px;
    color: #000;
    background: none;
  }

  .questionnaire-hero p:not(.eyebrow) {
    color: #000;
  }

  .section {
    padding: 0;
  }

  .questionnaire-layout {
    display: block;
  }

  .questionnaire-note {
    position: static;
    margin-bottom: 12px;
    box-shadow: none;
  }

  .questionnaire-form fieldset {
    break-inside: avoid;
    box-shadow: none;
  }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .tree-grid,
  .offers-grid,
  .contract-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters,
  .context-grid,
  .contact-layout,
  .questionnaire-layout,
  .signi-layout {
    grid-template-columns: 1fr;
  }

  .questionnaire-note,
  .signi-note {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 10px;
  }

  .hero {
    width: min(100% - 20px, 1320px);
    min-height: 500px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

  .tree-grid,
  .offers-grid,
  .contract-menu {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
