:root {
  --green: #91b508;
  --green-hover: #718e06;
  --brown: #503d32;
  --brown-dark: #212121;
  --white: #ffffff;
  --gray: #cecece;
  --header-height: 78px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--brown);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0;
}

h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.15; letter-spacing: -1px; }
h2 { font-size: 30px; font-weight: 300; line-height: 40px; letter-spacing: -1px; margin-bottom: 30px; }
h3 { font-size: clamp(24px, 3vw, 35px); line-height: 1.3; letter-spacing: -1px; }
h4 { font-size: 20px; line-height: 25px; letter-spacing: -1px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  padding: 15px 30px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover { background: var(--green-hover); }

.btn-outline {
  background: transparent;
  color: var(--brown-dark);
  border: 1px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--brown);
}

/* Popup */
.popup-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-modal.hidden { display: none; }

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(80, 61, 50, 0.85);
  backdrop-filter: blur(4px);
}

.popup-box {
  position: relative;
  background: var(--white);
  color: var(--brown);
  max-width: 480px;
  width: 100%;
  padding: 40px 32px 32px;
  border-radius: 4px;
  text-align: center;
  animation: popupIn 0.35s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--brown);
  opacity: 0.4;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.popup-close:hover { opacity: 1; }

.popup-symbol {
  width: 48px;
  margin: 0 auto 16px;
  filter: brightness(0) saturate(100%) invert(24%) sepia(12%) saturate(1200%) hue-rotate(346deg) brightness(95%);
}

.popup-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--brown);
}

.popup-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 24px;
}

.popup-apartments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-apt-link {
  display: block;
  text-align: left;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s;
}

.popup-apt-link:hover {
  border-color: var(--green);
  background: rgba(145, 181, 8, 0.06);
}

.popup-apt-num {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.popup-apt-detail {
  display: block;
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 6px;
}

.popup-apt-price {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
}

.apt-card.apt-sold {
  position: relative;
  opacity: 0.65;
  border-color: rgba(198, 40, 40, 0.6);
  background: rgba(60, 15, 15, 0.45);
}

.apt-card.apt-sold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(120, 20, 20, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

.apt-card.apt-sold .apt-card-link,
.apt-card.apt-sold .btn-outline-white {
  position: relative;
  z-index: 2;
}

.apt-card.apt-sold .apt-price.sold {
  color: #ef5350;
  opacity: 1;
  font-weight: 700;
}

.apt-card.apt-available {
  position: relative;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  cursor: pointer;
}

.apt-card.apt-available .apt-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 4px;
}

.apt-card.apt-available .btn,
.apt-card.apt-available .apt-card-link {
  position: relative;
  z-index: 2;
}

.apt-card.highlight {
  animation: aptHighlight 1.5s ease;
}

@keyframes aptHighlight {
  0%, 100% { box-shadow: 0 0 0 2px var(--green); }
  50% { box-shadow: 0 0 0 4px var(--green), 0 0 24px rgba(145, 181, 8, 0.4); }
}

.apt-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 15px 20px;
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(80, 61, 50, 0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo img { height: 48px; width: auto; }

.main-nav {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: opacity 0.3s;
}

.main-nav a:hover { opacity: 0.75; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.header-actions .btn-primary { padding: 10px 20px; font-size: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 70px;
  background: var(--brown);
  z-index: 99;
  padding: 24px;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hero */
.hero-section {
  min-height: 80vh;
  position: relative;
  color: var(--white);
}

.hero-static {
  min-height: 80vh;
  height: 80vh;
}

.hero-static .hero-slide {
  min-height: 80vh;
  height: 100%;
}

.hero-static .hero-slide {
  position: relative;
  min-height: 80vh;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(33, 33, 33, 0.3), var(--brown));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 80px;
  max-width: 800px;
}

.hero-content p { line-height: 1.7; opacity: 0.95; }
.hero-content p strong { font-weight: 600; }

.hero-badge {
  position: absolute;
  right: 40px;
  top: calc(var(--header-height) + 48px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 28px 36px;
  background-color: var(--green);
  background-image: url('../klanova_nekonecny_potisk.png');
  background-repeat: repeat;
  background-size: 140px auto;
  background-blend-mode: soft-light;
  color: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.35);
  transform: rotate(4deg);
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.hero-badge-text {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-badge-leaf {
  position: absolute;
  width: 56px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
}

.hero-badge-leaf--tl {
  top: -8px;
  left: -8px;
  transform: rotate(-12deg);
}

.hero-badge-leaf--br {
  bottom: -10px;
  right: -10px;
  transform: rotate(168deg);
}

.hero-leaf-bar {
  background: var(--brown);
  height: 110px;
  background-image: url('../klanova_nekonecny_potisk.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: contain;
}

/* Sections common */
.section-brown {
  background: var(--brown);
  color: var(--white);
  padding: 40px 0 140px;
}

#o-projektu { padding-top: 0; }

.section-white {
  background: var(--white);
  color: var(--brown);
  padding: 50px 0 100px;
}

.section-heading { margin-bottom: 50px; }
.section-heading h2 { color: inherit; }
.section-heading h3 { margin-top: 0; }

.leaf-divider {
  height: 110px;
  background: var(--brown);
  background-image: url('../klanova_nekonecny_potisk.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: contain;
  margin-bottom: 0;
}

.leaf-divider-in-section {
  margin-bottom: 120px;
}

#novinky .leaf-divider {
  background: var(--white);
}

/* O projektu */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-left .symbol { width: 60px; margin-bottom: 24px; }
.about-left p { line-height: 1.7; margin-bottom: 16px; }

.icon-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.icon-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.icon-feature .icon {
  display: block;
  width: 32px;
  height: auto;
  max-height: 36px;
  margin: 0 auto;
  color: var(--green);
}

.icon-feature p {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.4;
}

.about-right img.building-photo {
  border-radius: 4px;
  margin-bottom: 24px;
}

.about-right p { line-height: 1.7; margin-bottom: 16px; }

/* Lokalita */
.location-section {
  display: flex;
  flex-wrap: wrap;
}

.location-map {
  width: 50%;
  min-height: 500px;
  position: relative;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

.location-map-link {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.location-map-link:hover {
  background: var(--white);
}

.location-info {
  width: 50%;
  background: var(--green);
  color: var(--white);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h2, .location-info h3 { color: var(--white); }

.location-info p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.location-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-top: 32px;
}

.location-stat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.location-stat .location-icon {
  flex-shrink: 0;
  width: 28px;
  height: auto;
  max-height: 38px;
  margin-top: 2px;
  color: var(--white);
}

.location-stat p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.location-stat p strong {
  font-weight: 700;
}

/* Nabídka */
.offer-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.offer-intro p { line-height: 1.7; margin-bottom: 12px; }

.building-diagram {
  text-align: center;
  margin: 40px 0;
}

.building-diagram img {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.floor-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.floor-tab {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.floor-tab.active,
.floor-tab:hover {
  background: var(--green);
  border-color: var(--green);
}

#o-projektu { padding-top: 0; }

.section-nabidka-first {
  padding-top: 0;
}

#nabidka-bytu {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

#nabidka-bytu .section-heading h3 {
  text-align: center;
  color: var(--green);
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.apt-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 28px;
  border-radius: 4px;
}

.apt-card.hidden { display: none; }

.apt-card dl {
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}

.apt-card dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.apt-card dd {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 15px;
}

.apt-price { font-size: 18px !important; }
.apt-price.sold { opacity: 0.6; text-transform: uppercase; font-size: 14px !important; }

.apt-card .btn-outline-white {
  font-size: 13px;
  padding: 10px 20px;
}

.apt-card-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.apt-card-link:hover { opacity: 0.85; }

/* Novinky */
.news-section .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.news-slider .splide__slide {
  background: var(--white);
}

.news-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.news-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.news-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card h4 { margin-bottom: 10px; color: var(--brown); }
.news-card p { font-size: 14px; line-height: 1.6; margin: 0 0 16px; flex: 1; color: var(--brown); opacity: 0.85; }

.news-card .link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-slider .splide__arrow {
  background: var(--green);
  opacity: 1;
  width: 40px;
  height: 40px;
}

.news-slider .splide__arrow:disabled { opacity: 0.3; }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .logo { width: 180px; margin-bottom: 30px; }
.contact-info h3 { margin-bottom: 30px; }

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.contact-detail svg { flex-shrink: 0; }

.contact-detail a { color: var(--white); }
.contact-detail a:hover { opacity: 0.8; }

.contact-downloads { margin-top: 30px; }
.contact-downloads h4 { margin-bottom: 16px; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  border-radius: 4px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-success {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(145, 181, 8, 0.2);
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--white);
  line-height: 1.5;
}

/* Byt detail page */
body.byt-body {
  background: var(--brown);
}

.byt-header { position: sticky; }

.byt-leaf-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99;
  height: 110px;
  background: var(--brown);
  background-image: url('../klanova_nekonecny_potisk.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  pointer-events: none;
}

.byt-leaf-bar[hidden] {
  display: none;
}

.byt-page { padding-top: var(--header-height); }

.byt-detail {
  padding: 28px 0 80px;
}

.byt-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.byt-back:hover { opacity: 1; }

.byt-visual-col h1,
.byt-top-title {
  margin: 0;
  color: var(--white);
}

.byt-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
}

.byt-badge-available { background: var(--green); color: var(--white); }
.byt-badge-sold { background: rgba(198, 40, 40, 0.8); color: var(--white); }

.byt-subtitle {
  font-size: 18px;
  opacity: 0.85;
  margin: 0;
  color: var(--white);
}

.byt-top-header {
  grid-area: header;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.byt-top-header .byt-top-badge {
  margin: 0;
}

.byt-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 96px;
  row-gap: 8px;
  grid-template-areas:
    "header ."
    "photo params-title"
    "photo params-body";
  align-items: start;
  margin-bottom: 56px;
}

.byt-params-title {
  grid-area: params-title;
  margin: 0 0 20px;
  align-self: start;
}

.byt-photo-wrap { grid-area: photo; }
.byt-params-body { grid-area: params-body; }

.byt-params-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.byt-params-row--with-situation {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  align-items: end;
}

.byt-situation {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.byt-situation-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.byt-situation-caption {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.byt-situation-img {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
}

.byt-text-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.byt-about-block h2,
.byt-project-block h2 {
  margin-top: 0;
}

.byt-detail h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.byt-spec-list {
  margin: 0;
  display: grid;
  gap: 16px;
}

.byt-spec-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: baseline;
}

.byt-spec-list dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 0;
}

.byt-spec-list dd {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

.byt-price { color: var(--green) !important; font-size: 22px !important; }
.byt-price-sold { color: #ef5350 !important; text-transform: uppercase; }

.byt-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 28px;
}

.byt-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 12px 20px;
  font-size: 14px;
}

.byt-about-block,
.byt-project-block {
  padding-bottom: 0;
  border-bottom: none;
}

.byt-about-block p,
.byt-project-block p {
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 0.9;
}

.byt-project-photo {
  margin-top: 8px;
  margin-bottom: 20px;
  border-radius: 4px;
  max-width: 100%;
}

.byt-project-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.byt-project-link:hover { opacity: 0.85; }

.byt-diagram,
.byt-visual {
  border-radius: 4px;
  max-width: 100%;
}

.byt-visual {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

.byt-diagram {
  margin-top: 32px;
}

.byt-main-image {
  display: block;
  width: 100%;
  height: auto;
}

.byt-gallery {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.byt-gallery-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
}

.byt-gallery-zoom-hint {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.byt-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.byt-gallery-slide.is-active {
  display: flex;
}

.byt-gallery-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.byt-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.byt-gallery-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.byt-gallery-prev { left: 12px; }
.byt-gallery-next { right: 12px; }

.byt-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.byt-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.byt-gallery-dot.is-active {
  background: var(--green);
  transform: scale(1.15);
}

body.byt-lightbox-open {
  overflow: hidden;
}

.byt-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 88px;
  background: rgba(0, 0, 0, 0.94);
}

.byt-gallery-lightbox[hidden] {
  display: none;
}

.byt-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.byt-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.byt-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.byt-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.byt-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.byt-lightbox-prev { left: 24px; }
.byt-lightbox-next { right: 24px; }

.byt-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.byt-sold-note {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  line-height: 1.6;
}

.byt-sold-note a { color: var(--green); font-weight: 600; }

.byt-contact {
  padding-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 991px) {
  .byt-top-grid {
    grid-template-columns: 1fr;
    row-gap: 12px;
    grid-template-areas:
      "header"
      "params-title"
      "photo"
      "params-body";
  }

  .byt-top-header {
    margin-bottom: 16px;
  }

  .byt-text-grid {
    padding-top: 20px;
  }

  .byt-params-row--with-situation {
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 24px;
  }

  .byt-situation {
    justify-self: start;
    align-items: flex-start;
    max-width: 260px;
  }

  .byt-situation-caption {
    text-align: left;
  }

  .byt-situation-img {
    max-width: min(200px, 100%);
  }

  .byt-actions {
    flex-wrap: wrap;
  }

  .byt-gallery-lightbox {
    padding: 64px 20px;
  }

  .byt-lightbox-prev { left: 12px; }
  .byt-lightbox-next { right: 12px; }

  .byt-gallery-zoom-hint {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 991px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: flex; }

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

  .location-map,
  .location-info { width: 100%; }

  .icon-features { grid-template-columns: repeat(2, 1fr); }
  .location-stats { grid-template-columns: 1fr; }

  .hero-content { padding: 0 24px 60px; }

  .hero-badge {
    right: 24px;
    top: calc(var(--header-height) + 28px);
    min-width: 180px;
    padding: 20px 28px;
    transform: rotate(3deg);
  }

  .hero-badge-leaf {
    width: 44px;
  }
}

@media (max-width: 767px) {
  .hero-badge {
    right: 16px;
    left: auto;
    min-width: 0;
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 16px 22px;
    transform: rotate(2deg);
  }

  .hero-badge-text {
    letter-spacing: 0.1em;
  }

  .hero-badge-leaf {
    width: 36px;
  }

  .icon-features { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .floor-tabs { justify-content: center; }
}

/* Scroll reveal – jako originál klanova49.cz (fadeInUp / fadeInLeft / fadeIn) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition:
      opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
  }

  .reveal-fade-up {
    transform: translate3d(0, 36px, 0);
  }

  .reveal-fade-left {
    transform: translate3d(-36px, 0, 0);
  }

  .reveal-fade-in {
    transform: none;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
