/* =============================================================================
   Mýtus tisícikoruny — vlastní CSS vrstva
   Executive Luxe & Modern Dark Elegance
   ============================================================================= */

:root {
  --bg-0: #0b0d12;
  --bg-1: #0f1117;
  --bg-card: rgba(18, 21, 29, 0.72);
  --text: #ffffff;
  --muted: #a8aeb8;
  --muted-2: #7c8494;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-mid: #e4c96a;
  --gold-dark: #a8892a;
  --line: rgba(212, 175, 55, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --danger: #c4a484;
  --radius: 1.5rem;
  --shadow-gold: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.18),
    0 12px 40px rgba(212, 175, 55, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Jemné ambientní světlo — prémiový „dark salon“ pocit */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 40% at 100% 20%, rgba(212, 175, 55, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(243, 229, 171, 0.04), transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
}

.ambient__orb {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 68%);
  animation: drift 18s ease-in-out infinite;
}

.ambient__orb--a {
  top: -12rem;
  left: 50%;
  transform: translateX(-50%);
}

.ambient__orb--b {
  right: -10rem;
  bottom: 10%;
  width: 28rem;
  height: 28rem;
  animation-delay: -7s;
  background: radial-gradient(circle, rgba(243, 229, 171, 0.08), transparent 70%);
}

@keyframes drift {
  0%,
  100% {
    opacity: 0.85;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(2%, 3%) scale(1.06);
  }
}

/* Filmové zrno — luxusní textura bez fotobanky */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
}

/* Typografie */
.font-display {
  font-family: "Playfair Display", Georgia, serif;
}

.font-ui {
  font-family: Outfit, system-ui, sans-serif;
}

.font-data {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.gold-text {
  background: linear-gradient(180deg, #f8eec4 0%, var(--gold-light) 18%, var(--gold) 52%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-rule {
  height: 1px;
  width: 4.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Hero fotka — dítě vlevo, vlastní bydlení vpravo */
.hero-visual {
  position: relative;
  margin: 2.4rem auto 0;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-gold);
  background: #0b0d12;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
}

.hero-visual__fade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 18, 0.88));
  pointer-events: none;
}

.hero-visual__captions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.95rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

@media (min-width: 640px) {
  .hero-visual__captions {
    padding: 1.25rem 1.5rem 1.15rem;
    font-size: 0.72rem;
  }
}

/* Glassmorphic karta */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-gold);
  border-radius: var(--radius);
}

.glass--soft {
  border-color: var(--line-soft);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

/* Iniciály MD */
.monogram {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(243, 229, 171, 0.12), rgba(212, 175, 55, 0.04)),
    rgba(15, 17, 23, 0.9);
  box-shadow: inset 0 1px 0 rgba(243, 229, 171, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.monogram span {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

/* Kovové CTA */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.05rem 1.5rem;
  border: 0;
  border-radius: 0.9rem;
  cursor: pointer;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #1a1408;
  background: linear-gradient(180deg, #f6ebc0 0%, #e4c96a 38%, #d4af37 62%, #b8962e 100%);
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(120, 90, 20, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 16px 40px rgba(212, 175, 55, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-gold:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Formulářová pole */
.field {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(8, 10, 14, 0.55);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder {
  color: var(--muted-2);
}

.field:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Custom range slidery — zlatý track + kovový palec */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold) var(--fill, 0%),
    rgba(255, 255, 255, 0.1) var(--fill, 0%),
    rgba(255, 255, 255, 0.1) 100%
  );
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3e5ab, #d4af37);
  border: 2px solid #1a1408;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18), 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3e5ab, #d4af37);
  border: 2px solid #1a1408;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  transform: scale(1.08);
}

input[type="range"]:focus-visible {
  outline: none;
}

/* Výsledkové dlaždice */
.stat {
  padding: 1.15rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.stat--gold {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(243, 229, 171, 0.12);
}

.stat__value {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

/* Srovnávací sloupce */
.bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: end;
  height: 11.5rem;
  padding: 0.25rem 0.5rem 0;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.55rem;
}

.bar__fill {
  width: 100%;
  max-width: 4.5rem;
  border-radius: 0.85rem 0.85rem 0.35rem 0.35rem;
  min-height: 8%;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar__fill--mute {
  background: linear-gradient(180deg, rgba(168, 174, 184, 0.45), rgba(168, 174, 184, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bar__fill--gold {
  background: linear-gradient(180deg, #f3e5ab, #d4af37 70%, #8a6d1f);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}

.bar__label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* Honeypot mimo obrazovku (Netlify bot-field) */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.success-panel {
  display: none;
}

.success-panel.is-visible {
  display: block !important;
}

.form-panel.is-hidden {
  display: none;
}

/* Checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.consent input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.consent a,
footer a,
.legal a,
.page a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.consent a:hover,
footer a:hover,
.legal a:hover {
  color: #fff;
}

.form-error {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e8c4a8;
}

.legal h2 {
  margin: 0 0 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

.legal p,
.legal li {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal p {
  margin: 0 0 0.85rem;
}

.legal ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(11, 13, 18, 0.92) 28%);
    backdrop-filter: blur(12px);
  }

  .sticky-cta.is-hidden {
    display: none;
  }

  body {
    padding-bottom: 5.5rem;
  }

  #lead {
    scroll-margin-bottom: 5.5rem;
  }
}

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

  .ambient__orb,
  .bar__fill {
    animation: none;
    transition: none;
  }
}
