/* ===== Barvy převzaté z prezentace ===== */
:root {
  --olive: #866f40;
  --olive-dark: #6b5833;
  --olive-deep: #3f3420;
  --cream: #f7f4e6;
  --cream-2: #efe9d4;
  --gold: #e2ba6a;
  --gold-soft: #f0d59b;
  --ink: #2a2418;
  --text: #5c4d30;
  --radius: 18px;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--olive-deep); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; margin-bottom: 1.5rem; max-width: 18ch; }
h3 { font-size: 1.25rem; font-weight: 700; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--olive { background: var(--olive); color: var(--gold); }
.section--olive h2, .section--olive h3 { color: var(--cream); }
.section--cream2 { background: var(--cream-2); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700;
  color: var(--olive); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }
.intro { font-size: 1.15rem; max-width: 60ch; margin: 0 0 2.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  background: var(--gold); color: var(--olive-deep);
  font-weight: 700; text-decoration: none; border: 2px solid var(--gold);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(63, 52, 32, .5); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--olive-deep); }
.btn--outline { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn--outline:hover { background: var(--olive); color: var(--cream); }
.btn--small { padding: .55rem 1.2rem; font-size: .9rem; background: var(--olive); border-color: var(--olive); color: var(--cream); }

/* ===== Progress + Nav ===== */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 14px var(--gutter);
  background: rgba(247, 244, 230, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(134, 111, 64, .15);
  transition: transform .4s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 68px; margin: -10px 0; width: auto; mix-blend-mode: multiply; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--olive); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

/* ===== Hero ===== */
.hero {
  min-height: min(100vh, 1000px); display: grid; grid-template-columns: 1fr 1.1fr; position: relative;
}
.hero__panel {
  background: var(--olive); color: var(--gold);
  padding: 140px var(--gutter) 100px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero__panel::before { /* jemný vzor půdorysné mřížky */
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: linear-gradient(var(--cream) 1px, transparent 1px), linear-gradient(90deg, var(--cream) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 20% 80%, #000, transparent 70%);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--cream); font-size: clamp(2.6rem, 5.6vw, 5.2rem); font-weight: 800; }
.hero h1 span { color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 42ch; margin: 1.8rem 0 2.4rem; color: var(--gold-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translate(-2%, -2%); } }
.hero__badge {
  position: absolute; right: 32px; bottom: 32px;
  background: var(--cream); color: var(--olive-deep); border-radius: var(--radius);
  padding: 1rem 1.4rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.hero__badge strong {
  background: var(--olive); color: var(--gold); border-radius: 10px; padding: .3rem .6rem; font-size: 1.2rem;
}
.hero__badge span { font-weight: 600; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid var(--cream); border-radius: 20px; z-index: 2;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--cream); border-radius: 2px; animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--olive-deep); color: var(--gold-soft);
}
.stat { padding: clamp(28px, 4vw, 56px) var(--gutter); border-right: 1px solid rgba(226, 186, 106, .15); }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(2.2rem, 4vw, 3.6rem); color: var(--gold); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 1rem; margin-left: .35rem; color: var(--gold); font-weight: 600; }
.stat span { display: block; margin-top: .4rem; font-size: .95rem; opacity: .85; }

/* ===== Split (souhrn) ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
}
.split__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.06); }
.split__media::after {
  content: ""; position: absolute; inset: 16px; border: 1px solid rgba(247, 244, 230, .6); border-radius: 12px; pointer-events: none;
}

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.ticks li { position: relative; padding-left: 2rem; font-size: 1.05rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px;
  border-radius: 4px; background: var(--gold); box-shadow: 0 0 0 4px rgba(226, 186, 106, .25);
}
.ticks strong { color: var(--olive-deep); }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 3rem; }
.card {
  position: relative; padding: 2rem 1.6rem 2.2rem; border-radius: var(--radius);
  background: rgba(63, 52, 32, .28); border: 1px solid rgba(226, 186, 106, .25);
  transition: transform .4s var(--ease), background .4s, border-color .4s;
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); background: rgba(63, 52, 32, .5); border-color: var(--gold); }
.card__num { position: absolute; right: 1.2rem; top: .6rem; font-size: 3.4rem; font-weight: 800; color: rgba(226, 186, 106, .14); }
.card svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.4rem; }
.card h3 { margin-bottom: .8rem; }
.card p { margin: 0; font-size: .97rem; color: var(--gold-soft); }

/* ===== Parallax ===== */
.parallax {
  min-height: min(70vh, 700px); display: grid; place-items: center; padding: 0 var(--gutter);
  background: linear-gradient(rgba(63, 52, 32, .45), rgba(63, 52, 32, .45)), var(--img) center / cover fixed;
}
.parallax blockquote {
  margin: 0; color: var(--cream); font-size: clamp(1.8rem, 4.5vw, 3.8rem); font-weight: 800;
  text-align: center; letter-spacing: -.02em; max-width: 20ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}

/* ===== Legal facts ===== */
.legal { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.2rem 0;
  border-bottom: 1px solid rgba(134, 111, 64, .25);
}
.facts dt { font-weight: 700; color: var(--olive); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; padding-top: .2rem; }
.facts dd { margin: 0; color: var(--ink); }
.facts__total { background: var(--olive); border-radius: 12px; padding: 1.2rem 1.4rem !important; margin-top: 1rem; border: 0 !important; }
.facts__total dt { color: var(--gold-soft); }
.facts__total dd { color: var(--gold); font-weight: 800; font-size: 1.4rem; }
.facts--dark div { border-color: rgba(226, 186, 106, .2); grid-template-columns: 140px 1fr; }
.facts--dark dt { color: var(--gold); }
.facts--dark dd { color: var(--cream); }

/* ===== Floors ===== */
.floors { background: var(--cream); border-radius: calc(var(--radius) + 6px); padding: clamp(16px, 2.5vw, 28px); box-shadow: 0 30px 80px -40px rgba(63, 52, 32, .4); }
.floors__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.floors__tabs button {
  border: 0; border-radius: 14px; padding: 1rem 1.2rem; text-align: left;
  background: var(--cream-2); color: var(--text); transition: background .3s, color .3s;
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap;
}
.floors__tabs button b { font-size: 1.3rem; color: var(--olive-deep); }
.floors__tabs button[aria-selected="true"] { background: var(--olive); color: var(--gold-soft); }
.floors__tabs button[aria-selected="true"] b { color: var(--gold); }
.floor { display: none; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.floor.is-active { display: grid; animation: fadeup .6s var(--ease); }
.floor__info h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.bar { height: 8px; background: var(--cream-2); border-radius: 8px; margin-bottom: 1.6rem; overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--olive), var(--gold)); border-radius: 8px; animation: grow 1s var(--ease); }
@keyframes grow { from { width: 0; } }
.floor__plan {
  border: 1px solid rgba(134, 111, 64, .2); background: #fff; border-radius: 14px; padding: 1rem; position: relative; overflow: hidden;
}
.floor__plan img { width: 100%; height: auto; max-height: 460px; object-fit: contain; transition: transform .6s var(--ease); }
.floor__plan:hover img { transform: scale(1.03); }
.floor__plan span {
  position: absolute; right: 12px; bottom: 12px; background: var(--olive); color: var(--cream);
  font-size: .8rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px;
}
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ===== Gallery ===== */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 12px;
  padding: 3rem var(--gutter) 0; max-width: 1440px; margin: 0 auto;
}
.g { border: 0; padding: 0; border-radius: 14px; overflow: hidden; position: relative; background: var(--olive-dark); }
.g--wide { grid-column: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.g:hover img { transform: scale(1.08); filter: brightness(.8); }
.g span {
  position: absolute; left: 16px; bottom: 14px; color: var(--cream); font-weight: 700;
  transform: translateY(10px); opacity: 0; transition: .4s var(--ease);
}
.g:hover span, .g:focus-visible span { transform: none; opacity: 1; }

/* ===== Location ===== */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.route { background: var(--olive); color: var(--gold-soft); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3vw, 40px); }
.route__title { margin: 0 0 1.4rem; color: var(--cream); font-weight: 800; font-size: 1.3rem; }
.route__row { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.route__row b { color: var(--gold); text-align: right; }
.route__bar { height: 10px; background: rgba(63, 52, 32, .4); border-radius: 10px; overflow: hidden; }
.route__bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 10px; transition: width 1.4s var(--ease); }
.route.is-visible .route__bar i { width: var(--w); }
.route__map { margin-top: 1.6rem; border-top: 1px solid rgba(226, 186, 106, .2); padding-top: 1rem; }
.route__map svg { width: 100%; height: auto; overflow: visible; }
.route__map circle { fill: var(--cream); }
.route__map circle.here { fill: var(--gold); animation: pulse 2s infinite; transform-origin: 205px 59px; }
.route__map text { fill: var(--gold-soft); font-size: 13px; text-anchor: middle; font-family: inherit; font-weight: 600; }
.route__map text.here { fill: var(--gold); font-weight: 800; font-size: 15px; }
.route__line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 8 8; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* ===== Scenarios ===== */
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 3rem; }
.scenario {
  background: var(--cream); border-radius: var(--radius); padding: 2.2rem 1.8rem; position: relative;
  border: 1px solid rgba(134, 111, 64, .15); transition: transform .4s var(--ease), box-shadow .4s;
}
.scenario:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(63, 52, 32, .45); }
.scenario > span {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--olive); color: var(--gold); font-weight: 800; font-size: 1.4rem; margin-bottom: 1.4rem;
}
.scenario h3 { margin-bottom: .7rem; font-size: 1.4rem; }
.scenario p { margin: 0; }

/* ===== Price ===== */
.price { background: var(--olive-deep); color: var(--gold-soft); padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.price::before {
  content: "41"; position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font-size: 40vw; font-weight: 800; color: rgba(226, 186, 106, .05); line-height: 1; pointer-events: none;
}
.price__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; }
.price__label { margin: 0; font-size: 1.1rem; color: var(--cream); }
.price__value { margin: .3rem 0 0; font-size: clamp(2.8rem, 6.5vw, 5.8rem); font-weight: 800; color: var(--gold); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== Contact ===== */
.contact { position: relative; min-height: min(80vh, 800px); display: grid; place-items: center; padding: 100px var(--gutter); }
.contact__media { position: absolute; inset: 0; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(134, 111, 64, .85), rgba(63, 52, 32, .35)); }
.contact__card {
  position: relative; background: var(--cream); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 56px); max-width: 560px; width: 100%;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
}
.contact__card h2 { margin-bottom: .2rem; }
.contact__role { margin: 0 0 1.4rem; color: var(--olive); font-weight: 600; }
.contact__links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 28px var(--gutter); background: var(--cream); font-size: .9rem;
}
.footer img { height: 41px; width: auto; mix-blend-mode: multiply; }
.footer p { margin: 0; }
.footer__link { font-weight: 600; color: var(--olive); text-decoration: none; }
.footer__link:hover { color: var(--olive-deep); text-decoration: underline; }

/* ===== Tlačítko nahoru ===== */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--olive); color: var(--cream); box-shadow: 0 6px 20px rgba(42, 36, 24, .25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--olive-deep); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(42, 36, 24, .92);
  display: grid; place-items: center; padding: 24px; animation: fadein .3s;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; background: #fff; animation: zoomin .4s var(--ease); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--gold); color: var(--olive-deep); font-size: 2rem; line-height: 1;
}
.lightbox__close { z-index: 1; }
.lightbox__stage { display: contents; }
.lightbox.is-zoomed .lightbox__stage {
  display: flex; width: 100%; height: 90vh; overflow: auto; border-radius: 10px; cursor: grab; touch-action: pan-x pan-y;
}
.lightbox.is-zoomed .lightbox__stage.is-dragging { cursor: grabbing; }
.lightbox.is-zoomed img { max-width: none; max-height: none; margin: auto; flex: none; animation: none; user-select: none; -webkit-user-drag: none; }
.lightbox__zoom { display: none; position: absolute; right: 22px; bottom: 18px; z-index: 1; gap: 10px; }
.lightbox.is-zoomable .lightbox__zoom { display: flex; }
.lightbox__zoom button {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--olive-deep); font-size: 1.8rem; font-weight: 700; line-height: 1;
}
.lightbox__zoom button:disabled { opacity: .4; }
@keyframes fadein { from { opacity: 0; } }
@keyframes zoomin { from { transform: scale(.94); opacity: 0; } }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(226, 186, 106, .15); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { height: 55vh; order: -1; }
  .hero__panel { padding-top: 48px; }
  .hero__scroll { display: none; }
  .split, .legal, .location, .price__inner, .floor { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4/3; }
  .scenarios { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .parallax { background-attachment: scroll; min-height: 50vh; }
  .facts div { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 560px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(226, 186, 106, .15); }
  .floors__tabs button { padding: .8rem; }
  .floors__tabs button b { font-size: 1.05rem; }
  .floors__tabs button span { font-size: .8rem; }
  .gallery { grid-template-columns: 1fr; }
  .g--wide { grid-column: auto; }
  .route__row { grid-template-columns: 90px 1fr 80px; gap: .6rem; font-size: .9rem; }
  .hero__badge { right: 16px; bottom: 16px; }
  .price__value { white-space: normal; }
}
