/* Monika Zelená - luxury minimal real estate
   Nadpisy: Libre Bodoni (webová alternativa k Bauer Bodoni) */

:root {
  --c-black: #000000;
  --c-ink: #171717;
  --c-text: #333333;
  --c-muted: #484848;
  --c-soft: #868686;
  --c-white: #ffffff;
  --c-canvas: #f3f2ef;
  --c-warm: #ebeae6;
  --c-surface-light: #faf9f7;
  --c-surface-mid: #f0efec;
  --c-surface-deep: #ebe9e4;
  --c-section-line: rgba(72, 72, 72, 0.11);
  --c-accent: #f4c105;
  --font-display: "Libre Bodoni", "Bodoni MT", "Didot", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-alt: "Poppins", var(--font-body);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.08);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-canvas);
  background-image: radial-gradient(
    ellipse 120% 70% at 50% -15%,
    rgba(244, 193, 5, 0.045),
    transparent 55%
  );
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--c-black);
  color: var(--c-white);
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.section--tight {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--dark {
  background: var(--c-ink);
  color: var(--c-white);
}

.section--white {
  background-color: var(--c-white);
}

.section--warm,
.section--tone-light {
  background-color: var(--c-surface-light);
  background-image:
    radial-gradient(ellipse 90% 58% at 100% 0%, rgba(244, 193, 5, 0.05), transparent 58%),
    radial-gradient(ellipse 55% 42% at 0% 100%, rgba(23, 23, 23, 0.028), transparent 52%),
    linear-gradient(180deg, #fcfbfa 0%, var(--c-surface-light) 45%, #f2f1ed 100%);
}

.section--tone-mid {
  background-color: var(--c-surface-mid);
  background-image:
    radial-gradient(ellipse 78% 52% at 0% 45%, rgba(244, 193, 5, 0.04), transparent 56%),
    radial-gradient(ellipse 65% 48% at 100% 100%, rgba(23, 23, 23, 0.03), transparent 52%),
    linear-gradient(180deg, #f3f2ef 0%, var(--c-surface-mid) 50%, #e8e7e3 100%);
}

/* Světlejší šedá – bez tmavého color-mixu (pouze kde je potřeba mimo úvod) */
.section--tone-deep {
  background-color: #ebe9e4;
  background-image:
    radial-gradient(ellipse 72% 50% at 50% 0%, rgba(244, 193, 5, 0.04), transparent 60%),
    linear-gradient(180deg, #f2f1ed 0%, #ebe9e4 55%, #e6e4df 100%);
}

/* Domů: střídání bílé a světle šedé (bez tmavých tónů) */
.page-home #main > .section.section--white,
.page-home #main > .section.section--tone-mid {
  background-image: none;
  border-top: 1px solid var(--c-section-line);
}

.page-home #main > .section.section--white {
  background-color: var(--c-white);
}

.page-home #main > .section.section--tone-mid {
  background-color: #eeedea;
}

.page-home #main > .hero + .section {
  border-top: none;
}

.eyebrow {
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-soft);
  margin: 0 0 1rem;
}

.section--dark .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

p.lead {
  font-size: 1.08rem;
  color: var(--c-muted);
  max-width: 52ch;
}

.section--dark p.lead {
  color: rgba(255, 255, 255, 0.72);
}

.about-pullquote {
  margin: 1.75rem 0 0;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid var(--c-accent);
}

.about-pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--c-ink);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(23, 23, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Úvodní stránka - světlý hero: tmavý text v hlavičce, dokud není scroll */
body.has-light-hero .site-header:not(.is-scrolled) .logo {
  color: var(--c-ink);
  text-shadow: none;
}

body.has-light-hero .site-header:not(.is-scrolled) .logo span {
  color: var(--c-accent);
}

body.has-light-hero .site-header:not(.is-scrolled) .nav-list a:not(.btn) {
  color: var(--c-muted);
}

body.has-light-hero .site-header:not(.is-scrolled) .nav-list a:not(.btn):hover {
  color: var(--c-ink);
}

body.has-light-hero .site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink);
}

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

/* Logo vlevo | odkazy uprostřed | Odhad zdarma vpravo (mimo <nav>) - jen desktop */
@media (min-width: 1025px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: initial;
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    row-gap: 0;
  }

  .header-menu {
    display: contents;
  }

  .header-menu .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  .header-cta {
    justify-self: end;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--c-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--c-accent);
}

.site-header:not(.is-scrolled) .logo {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  color: var(--c-white);
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
}

.nav-list a:not(.btn) {
  padding: 0.3rem 0 0.5rem;
}

.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.35s var(--ease-out);
}

.nav-list a:not(.btn):hover::after,
.nav-list a:not(.btn).is-active::after {
  width: 100%;
}

.nav-list a:hover {
  color: var(--c-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out),
    color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-black);
  box-shadow: 0 12px 40px rgba(244, 193, 5, 0.28);
}

.btn--primary:hover {
  background: #ffd54a;
  box-shadow: 0 16px 48px rgba(244, 193, 5, 0.38);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--c-white);
}

.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-white);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--c-muted);
  color: var(--c-text);
}

.btn--outline-dark:hover {
  border-color: var(--c-accent);
  color: var(--c-ink);
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.72rem;
}

/* CTA v hlavičce - větší než běžné .btn--sm, musí být až za .btn--sm kvůli kaskádě */
.site-header .header-cta.btn--sm {
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
  font-size: 0.82rem;
  padding: 0.75rem 1.2rem;
  letter-spacing: 0.1em;
  gap: 0.38rem;
}

.site-header .header-cta.btn--sm::after {
  content: "";
  display: block;
  width: 0.42em;
  height: 0.42em;
  margin-bottom: 0.04em;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Hero (úvodní stránka - osobní, bez videa / fotky nemovitosti) */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 0;
  color: var(--c-white);
  overflow: hidden;
}

.hero.hero--personal {
  color: var(--c-text);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 65% at 88% 12%, rgba(244, 193, 5, 0.13), transparent 52%),
    linear-gradient(168deg, #161616 0%, #0a0a0a 48%, #151515 100%);
}

/* Světlý hero - neutrální podklad, jen náznak akcentu (zlatá hlavně na CTA) */
.hero--personal .hero__bg {
  background:
    radial-gradient(ellipse 92% 62% at 88% 10%, rgba(244, 193, 5, 0.1), transparent 54%),
    radial-gradient(ellipse 52% 44% at 14% 88%, rgba(23, 23, 23, 0.04), transparent 50%),
    linear-gradient(168deg, #fcfbfa 0%, #f6f5f2 52%, var(--c-surface-mid) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(1.25rem, 4vw, 2rem));
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.hero__grid--personal {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.hero__copy {
  max-width: 42rem;
}

.hero--personal h1 {
  font-size: clamp(2.15rem, 6.5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin: 0 0 1.1rem;
  max-width: min(100%, 40ch);
}

.hero .lead.hero__lead {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

.hero--personal .lead.hero__lead {
  color: var(--c-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  margin-bottom: 1.75rem;
}

/* Logo kanceláře - bez rámečku / kartičky, jen odkaz */
.hero__hv-logo,
.hv-logo-link {
  display: inline-block;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease-out);
}

.hero__hv-logo {
  margin-top: 0;
}

.hv-logo-link {
  margin-top: 1.5rem;
}

.hero__hv-logo:hover,
.hv-logo-link:hover {
  opacity: 1;
}

.hero__hv-logo img,
.hv-logo-link img {
  display: block;
  height: auto;
  width: auto;
  max-height: clamp(72px, 14vw, 112px);
  max-width: min(380px, 92vw);
}

.hv-logo-link img {
  max-height: clamp(56px, 10vw, 88px);
  max-width: min(280px, 85vw);
}

.hero__visual {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
}

.hero__photo {
  position: relative;
  margin-inline: 0 auto;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  aspect-ratio: 4 / 5;
  max-height: min(480px, 58vh);
}

.hero--personal .hero__photo {
  width: min(400px, 100%);
  aspect-ratio: 4 / 5;
  max-height: none;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__stats--band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero--personal .hero__stats--band {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.hero__stats {
  display: grid;
  gap: 1rem;
}

.stat-float {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.hero--personal .stat-float {
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-card);
}

.stat-float__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--c-accent);
  line-height: 1;
}

.hero--personal .stat-float__value {
  color: var(--c-ink);
}

.stat-float__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
}

.hero--personal .stat-float__label {
  color: var(--c-soft);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Split about */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  max-height: 560px;
}

.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-ink) 0%, #0a0a0a 100%);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--c-accent);
  line-height: 1;
}

.stat-item__label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Property cards */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--c-white);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--c-accent);
  background: rgba(244, 193, 5, 0.12);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.5rem;
}

.property-card {
  position: relative;
  height: 100%;
}

.property-card__media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.65s var(--ease-out);
  pointer-events: none;
}

.property-card:hover .property-card__media::after {
  background: rgba(0, 0, 0, 0.22);
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card__body .eyebrow {
  margin-bottom: 0.5rem;
}

.dev-card__body h3,
.property-card__body h3 {
  color: var(--c-white);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.property-card__price {
  margin: 0;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
}

.property-card__status {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.property-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.property-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.property-card__actions {
  margin-top: 0;
  padding-top: 1.25rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}

.property-card__actions .btn {
  position: relative;
  z-index: 4;
}

.property-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: var(--c-white);
  backdrop-filter: blur(6px);
}

/* Sold section */
.properties-empty-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
  width: 100%;
}

.properties-empty {
  margin: 0;
  max-width: 42ch;
}

.section--dark .properties-empty--sold {
  color: rgba(255, 255, 255, 0.72);
}

.section--tone-mid .properties-empty,
.section--tone-deep .properties-empty,
.section--white .properties-empty {
  color: var(--c-ink);
  opacity: 0.72;
}

.sold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.5rem;
}

.sold-grid > .property-card {
  align-self: stretch;
  height: auto;
  min-height: 100%;
}

.property-card__media .sold-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(244, 193, 5, 0.95);
  color: var(--c-black);
  font-weight: 700;
}

.property-card__media .sold-badge--reserved {
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink);
  letter-spacing: 0.12em;
}

/* Presentation section */
.presentation-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: stretch;
}

.presentation-layout__intro .lead {
  margin-bottom: 0;
}

#prezentace .presentation-layout__intro .lead {
  font-size: 1.08rem;
  line-height: 1.68;
  max-width: 48ch;
}

.presentation-videos-slider {
  display: block;
  position: relative;
  width: 100%;
  padding-inline: clamp(2.75rem, 6vw, 3.5rem);
}

/* Šipky karuselu – stejné bílé tlačítka jako u „Všechny nemovitosti“ */
#prezentace .presentation-videos-slider .t-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(72, 72, 72, 0.32);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.14),
    0 1px 4px rgba(72, 72, 72, 0.1);
}

#prezentace .presentation-videos-slider .t-nav-btn:first-of-type {
  left: 0;
}

#prezentace .presentation-videos-slider .t-nav-btn:last-of-type {
  right: 0;
}


#prezentace .presentation-videos-slider .testimonial-viewport,
#prezentace .presentation-videos-slider .testimonial-track {
  padding: 0;
  background: transparent;
}

#presentation-videos-track {
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.presentation-video {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

#prezentace .presentation-video {
  background: #0a0a0a;
  border: none;
  box-shadow: none;
}

.presentation-video--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

#prezentace .presentation-video--placeholder {
  background: #0a0a0a;
}

.presentation-video__ph-visual {
  width: clamp(72px, 14vw, 120px);
  height: clamp(72px, 14vw, 120px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
  opacity: 0.85;
}

.presentation-video__ph-visual::after {
  content: "";
  position: absolute;
  left: calc(50% + 3px);
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.35);
}

.presentation-services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.presentation-services .feature-mini:nth-child(1),
.presentation-services .feature-mini:nth-child(2),
.presentation-services .feature-mini:nth-child(3) {
  grid-column: span 2;
}

.presentation-services .feature-mini:nth-child(4) {
  grid-column: 2 / span 2;
}

.presentation-services .feature-mini:nth-child(5) {
  grid-column: 4 / span 2;
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.section--warm .feature-mini-grid .feature-mini {
  background: var(--c-white);
  border-color: rgba(0, 0, 0, 0.08);
}

.feature-mini {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: var(--c-warm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.feature-mini:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 193, 5, 0.4);
}

.feature-mini h4 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.feature-mini p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--c-muted);
}

/* Prezentace – karty ve stylu zbytku webu (service-card) */
.presentation-services .feature-mini {
  position: relative;
  padding: 1.55rem 1.45rem;
  border-radius: var(--radius-md);
  background: var(--c-white);
  border: 1px solid rgba(244, 193, 5, 0.32);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.presentation-services .feature-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 193, 5, 0.09), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.presentation-services .feature-mini:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 193, 5, 0.5);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.1);
}

.presentation-services .feature-mini h4 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 0.7rem;
  color: var(--c-ink);
}

.presentation-services .feature-mini p {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.62;
  color: var(--c-muted);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

#services-grid-home .service-card,
#services-grid-full .service-card {
  cursor: pointer;
}

.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--c-white);
  border: 1px solid rgba(244, 193, 5, 0.35);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 193, 5, 0.08), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--c-warm);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card h3 {
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-muted);
}

/* Dev projects */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.5rem;
}

.dev-grid > .dev-card {
  height: 100%;
}

.dev-empty-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
  width: 100%;
}

.dev-empty {
  margin: 0;
  max-width: 42ch;
  color: var(--c-ink);
  opacity: 0.72;
}

.dev-card,
.property-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.dev-card {
  min-height: 0;
  height: 100%;
}

.dev-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dev-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dev-card__body .eyebrow {
  margin-bottom: 0.5rem;
}

.dev-card__summary {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.dev-card__actions {
  margin-top: 0;
  padding-top: 1.25rem;
  flex: 0 0 auto;
}

.dev-card .eyebrow,
.property-card .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.dev-card__media {
  position: relative;
  flex: 0 0 auto;
  height: clamp(160px, 20vw, 220px);
  max-height: 220px;
  overflow: hidden;
}

.dev-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.65s var(--ease-out);
  pointer-events: none;
}

.dev-card:hover .dev-card__media::after {
  background: rgba(0, 0, 0, 0.22);
}

.dev-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dev-card__body,
.property-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.property-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#nabidka .property-card__body,
#prodano .property-card__body {
  padding-bottom: 2.5rem;
}

/* Reference – karusel se šipkami po stranách (ne nemovitosti / projekty / prodané) */
.testimonial-slider:not(.property-home-slider) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem clamp(0.5rem, 2vw, 1.25rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: clamp(0.25rem, 1vw, 0.5rem) 0;
  background: transparent;
}

.testimonial-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
  background: transparent;
}

/* Karusely na domů – šipky nahoře vlevo, karty na plnou šířku (jako sociální videa) */
.testimonial-slider.property-home-slider,
#property-home-slider-wrap,
#dev-home-slider-wrap,
#sold-home-slider-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding-inline: 0;
}

.property-home-slider[hidden] {
  display: none !important;
}

.property-home-slider .t-nav-btn[hidden] {
  display: none !important;
}

.testimonial-slider.property-home-slider .t-nav-btn,
#property-home-slider-wrap .t-nav-btn,
#dev-home-slider-wrap .t-nav-btn,
#sold-home-slider-wrap .t-nav-btn {
  position: static;
  transform: none;
  top: auto;
  left: auto;
  right: auto;
  order: 0;
  flex: 0 0 auto;
  align-self: auto;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(72, 72, 72, 0.32);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.14),
    0 1px 4px rgba(72, 72, 72, 0.1);
}

.testimonial-slider.property-home-slider .testimonial-viewport,
#property-home-slider-wrap .testimonial-viewport,
#dev-home-slider-wrap .testimonial-viewport,
#sold-home-slider-wrap .testimonial-viewport {
  order: 1;
  flex: 1 1 100%;
  width: 100%;
  margin-top: 0.15rem;
  padding-block: 0;
}


#property-home-track,
#sold-home-track,
#dev-home-track {
  gap: 1.5rem;
  align-items: stretch;
}

#presentation-videos-track {
  align-items: stretch;
}

.card-grid > .property-card,
#property-home-track > .property-card,
#sold-home-track > .property-card {
  align-self: stretch;
  height: auto;
  min-height: 100%;
}

#property-home-track .property-card,
#sold-home-track .property-card {
  min-width: 0;
  width: 100%;
}

#dev-home-track .dev-card {
  min-width: 0;
  height: 100%;
  align-self: stretch;
}

#sold-home-track .property-card__media {
  aspect-ratio: 4 / 3;
}

.testimonial-card {
  --testimonial-quote-height: 6.2rem;
  --testimonial-card-height: 11.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: var(--testimonial-card-height);
  min-height: var(--testimonial-card-height);
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  min-width: 0;
}

.testimonial-card.is-expanded {
  height: auto;
}

.testimonial-track > .testimonial-card,
.reference-grid > .testimonial-card {
  align-self: stretch;
}

.testimonial-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.testimonial-card__quote-wrap {
  position: relative;
  flex: 0 0 var(--testimonial-quote-height);
  height: var(--testimonial-quote-height);
  min-height: var(--testimonial-quote-height);
}

.testimonial-card__quote-wrap.is-collapsed {
  max-height: var(--testimonial-quote-height);
  overflow: hidden;
}

.testimonial-card__quote-wrap.is-expanded {
  flex: 0 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.testimonial-card__quote-wrap.is-collapsed.is-overflowing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--c-white) 88%);
  pointer-events: none;
}

.testimonial-card__quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.testimonial-card__toggle {
  flex: 0 0 1.2rem;
  align-self: flex-start;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2rem;
  color: var(--c-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.testimonial-card__toggle.is-invisible {
  visibility: hidden;
  pointer-events: none;
}

.testimonial-card__toggle:hover {
  color: var(--c-ink);
}

.testimonial-card__toggle:focus {
  outline: none;
}

.testimonial-card__toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.testimonial-card__author {
  margin: auto 0 0;
  flex: 0 0 auto;
  padding-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-ink);
}

.testimonial-card__role {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--c-muted);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.reference-grid > .dev-empty-wrap,
.testimonial-track > .dev-empty-wrap {
  grid-column: 1 / -1;
  flex: 0 0 100%;
  min-width: 100%;
}

.t-nav-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  display: grid;
  place-items: center;
  transition: border-color 0.25s, background 0.25s, opacity 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.t-nav-btn:focus {
  outline: none;
}

.t-nav-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.t-nav-btn--edge {
  align-self: center;
}

.t-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Sociální sekce - vlevo jako .container, vpravo až k okraji okna; bez viditelného scrollbaru */
.social-videos-strip {
  margin-top: 2rem;
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: clamp(0.5rem, 2vw, 1rem);
  padding-left: calc(max(0px, (100vw - 1180px) / 2) + clamp(1.25rem, 5vw, 2.5rem));
  padding-right: 0;
  box-sizing: border-box;
}

.social-videos-slider {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.social-videos-slider__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Šipky – stejné bílé tlačítka jako u „Všechny nemovitosti“ */
.social-videos-slider__nav .t-nav-btn {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(72, 72, 72, 0.32);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.14),
    0 1px 4px rgba(72, 72, 72, 0.1);
}

/* Hover jen na myši; :active zlaté při samotném kliknutí/tapnutí (mobil i desktop) */
@media (hover: hover) {
  .t-nav-btn:hover:not(:disabled) {
    border-color: var(--c-accent);
    background: rgba(244, 193, 5, 0.12);
  }

  .property-home-slider .t-nav-btn:hover:not(:disabled),
  #prezentace .presentation-videos-slider .t-nav-btn:hover:not(:disabled),
  .social-videos-slider__nav .t-nav-btn:hover:not(:disabled) {
    border-color: var(--c-accent);
    background: var(--c-white);
    color: var(--c-black);
    box-shadow:
      0 6px 22px rgba(0, 0, 0, 0.16),
      0 0 0 2px rgba(244, 193, 5, 0.4);
  }
}

.t-nav-btn:active:not(:disabled) {
  border-color: var(--c-accent);
  background: rgba(244, 193, 5, 0.12);
}

.property-home-slider .t-nav-btn:active:not(:disabled),
#prezentace .presentation-videos-slider .t-nav-btn:active:not(:disabled),
.social-videos-slider__nav .t-nav-btn:active:not(:disabled) {
  border-color: var(--c-accent);
  background: var(--c-white);
  color: var(--c-black);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.16),
    0 0 0 2px rgba(244, 193, 5, 0.4);
}

.social-videos-viewport {
  --social-video-h: clamp(300px, 40vw, 540px);
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  min-width: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  outline: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.social-videos-viewport::-webkit-scrollbar {
  display: none;
}

.social-videos-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-accent);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .social-videos-viewport {
    scroll-behavior: auto;
  }
}

.social-videos-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  width: max-content;
  min-height: var(--social-video-h);
  padding-block: 2px;
}

.social-videos-row video {
  height: var(--social-video-h);
  width: auto;
  max-width: none;
  display: block;
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  object-fit: contain;
  object-position: center;
  background-color: #e5e4e0;
  box-shadow: 0 12px 40px rgba(23, 23, 23, 0.06);
}

/* Social masonry */
.social-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 1rem;
}

.social-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.social-tile--tall {
  grid-row: span 2;
}

.social-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.social-tile:hover img {
  transform: scale(1.06);
}

.social-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s;
}

.social-tile:hover .social-tile__overlay {
  opacity: 1;
}

.social-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-black);
  display: grid;
  place-items: center;
}

.social-embed-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  max-width: 65ch;
}

/* Lead form */
.lead-panel {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(145deg, var(--c-ink) 0%, #0d0d0d 100%);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.lead-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.lead-stepper__item {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.lead-stepper__fill {
  height: 100%;
  width: 0%;
  background: var(--c-accent);
  transition: width 0.45s var(--ease-out);
}

.lead-steps {
  position: relative;
  min-height: 280px;
}

.lead-step {
  display: none;
}

.lead-step.is-active {
  display: block;
  animation: fadeStep 0.45s var(--ease-out);
}

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

.lead-step h3 {
  color: var(--c-white);
  margin-bottom: 1rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.choice-btn {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-white);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.choice-btn:hover,
.choice-btn.is-selected {
  border-color: var(--c-accent);
  background: rgba(244, 193, 5, 0.12);
}

.lead-input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--c-white);
  margin-bottom: 1rem;
}

.lead-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lead-feedback {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.lead-feedback strong {
  color: var(--c-accent);
}

.lead-panel.is-submitted {
  text-align: center;
}

.form-success-state {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  animation: fadeStep 0.45s var(--ease-out);
}

.form-success-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(244, 193, 5, 0.15);
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.form-success-state__title {
  color: var(--c-white);
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.form-success-state__message {
  margin: 0 auto;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.6;
}

.lead-select {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--c-white);
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.lead-select option {
  color: var(--c-ink);
}

.lead-radio-list {
  display: grid;
  gap: 0.65rem;
}

.lead-radio-list label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-white);
  font-size: 0.92rem;
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.lead-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.service-detail-wrap {
  max-width: 760px;
}

.service-detail-wrap.is-wide {
  max-width: min(920px, 100%);
}

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

/* Footer */
.site-footer {
  background: var(--c-black);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3rem, 8vw, 4.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 36ch;
}

.footer-col h4 {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

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

.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.social-icon {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  color: var(--c-text);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.social-icon__svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* TikTok jako obrázek (sekce Aktuálně… / kontakt) - SVG má tmavou výplň */
.social-icon__tiktok-img {
  object-fit: contain;
}

.social-icon:hover {
  border-color: var(--c-accent);
  background: rgba(244, 193, 5, 0.12);
  color: var(--c-ink);
}

.site-footer .social-icon {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .social-icon:hover {
  border-color: var(--c-accent);
  background: rgba(244, 193, 5, 0.12);
  color: var(--c-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--c-accent);
}

.footer-credit {
  margin-top: 0;
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit p {
  margin: 0;
}

.footer-credit__link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color 0.35s var(--ease-out);
}

.footer-credit__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.35s var(--ease-out);
}

.footer-credit__link:hover {
  color: var(--c-white);
}

.footer-credit__link:hover::after {
  width: 100%;
}

/* Page hero inner */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--c-ink);
  color: var(--c-white);
}

.page-hero h1 {
  color: var(--c-white);
  margin-bottom: 0.75rem;
}

/* Prázdný pás pod page-hero (stránky bez hlavního obsahu) */
.page-body-spacer {
  min-height: clamp(14rem, 32vh, 22rem);
  background: var(--c-white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.lightbox__inner {
  width: min(960px, 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.lightbox video {
  width: 100%;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.5);
  color: var(--c-white);
}

/* Loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--c-black);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.loader-line::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--c-accent);
  animation: loaderSlide 1s infinite ease-in-out;
}

@keyframes loaderSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* Detail page layout */
.detail-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--c-warm);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery-thumbs button {
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.25s, outline 0.25s;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover {
  opacity: 1;
  outline: 2px solid var(--c-accent);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Utilities */
.text-center {
  text-align: center;
}
.mt-sm {
  margin-top: 1rem;
}
.mt-md {
  margin-top: 2rem;
}
.mb-0 {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid--personal {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__visual {
    order: -1;
    justify-self: center;
    max-width: min(380px, 88vw);
    margin-inline: auto;
  }

  .hero--personal .hero__photo {
    width: min(380px, 88vw);
  }

  .hero__stats--band {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dev-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .presentation-services {
    grid-template-columns: 1fr;
  }

  /* Přepsat desktopová grid-column (vyšší specificita než samotné .feature-mini) */
  .presentation-services .feature-mini:nth-child(1),
  .presentation-services .feature-mini:nth-child(2),
  .presentation-services .feature-mini:nth-child(3),
  .presentation-services .feature-mini:nth-child(4),
  .presentation-services .feature-mini:nth-child(5) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
    width: 100%;
  }
  .social-videos-viewport {
    --social-video-h: clamp(280px, 48vw, 480px);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .social-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .header-menu {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(10, 10, 10, 0.96);
    padding: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-menu .nav {
    width: 100%;
  }

  /* Světlý hero mění barvu odkazů v hlavičce; rozbalovací panel je ale tmavý - stejné barvy jako po scrollu */
  body.has-light-hero .site-header:not(.is-scrolled) .header-menu .nav-list a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
  }

  body.has-light-hero .site-header:not(.is-scrolled) .header-menu .nav-list a:not(.btn):hover {
    color: var(--c-white);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-header .header-cta.btn--sm {
    align-self: stretch;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero__stats--band {
    grid-template-columns: 1fr;
  }
  .stats-band {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  #services-grid-home {
    grid-template-columns: 1fr;
  }
  .sold-grid {
    grid-template-columns: 1fr;
  }
  .feature-mini-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .social-masonry {
    grid-auto-rows: 120px;
  }
  .social-videos-viewport {
    --social-video-h: min(52vh, 520px);
  }

  /* Lead / odhad: typ nemovitosti - tlačítka pod sebou na mobilu */
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

