/* Stacked offset logo */
    .brand-mark {
      display: inline-flex;
      flex-direction: column;
      line-height: 0.92;
      font-family: 'Fraunces', Georgia, serif;
      font-weight: 400;
      letter-spacing: -0.01em;
    }

    .brand-mark .bm-top {
      font-size: 1em;
      transform: translateX(-0.05em);
    }

    .brand-mark .bm-bot {
      font-size: 0.74em;
      color: #d4b684;
      margin-top: -0.06em;
      transform: translateX(1.7em);
      font-style: italic;
      font-weight: 400;
      letter-spacing: 0.02em;
    }

    .brand-mark-lg .bm-bot {
      transform: translateX(1.7em);
    }

    .brand-mark .bm-amp {
      display: inline-block;
      color: #d4b684;
      font-style: normal;
      font-family: 'Fraunces', Georgia, serif;
      font-feature-settings: normal;
      font-variant: normal;
      margin-right: 0.1em;
      font-weight: 400;
    }


    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(40px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Geist', system-ui, sans-serif;
      background: #08070a;
      color: #f4efe6;
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
    }

    /* Globální pojistka proti horizontálnímu scrollu (absolutní dekorace,
       blur bloby). `clip` nevytváří scroll container; `hidden` je fallback. */
    html,
    body {
      overflow-x: hidden;
      overflow-x: clip;
      max-width: 100%;
    }

    /* iOS Safari: 100vh zahrnuje adresní lištu → hero "poskakuje".
       Small viewport height jednotku použít tam, kde ji prohlížeč umí. */
    @supports (height: 100svh) {
      .min-h-screen {
        min-height: 100svh;
      }
    }

    ::selection {
      background: #d4b684;
      color: #08070a;
    }

    /* Focus visibility (a11y) */
    *:focus-visible {
      outline: 2px solid #d4b684;
      outline-offset: 3px;
      border-radius: 4px;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      html {
        scroll-behavior: auto;
      }
    }

    /* Noise overlay */
    .noise::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 9999;
      pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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)' opacity='0.03'/%3E%3C/svg%3E");
      background-size: 300px;
      opacity: 0.5;
    }

    /* Animated mesh gradient */
    .mesh-bg {
      background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212, 182, 132, 0.12), transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(180, 140, 200, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 80%, rgba(212, 182, 132, 0.08), transparent 60%);
    }

    /* Glassmorphism */
    .glass {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
      backdrop-filter: blur(12px) saturate(120%);
      -webkit-backdrop-filter: blur(12px) saturate(120%);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .glass-strong {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
      backdrop-filter: blur(20px) saturate(140%);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Gradient text */
    .gradient-text {
      background: linear-gradient(135deg, #f4efe6 0%, #d4b684 50%, #f4efe6 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: gradient-x 8s ease infinite;
    }

    /* Hero title reveal */
    .reveal-line {
      overflow: clip;
      overflow-clip-margin: 0.3em;
    }

    .reveal-line>span {
      display: inline-block;
      padding-right: 0.12em;
      animation: heroRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes heroRise {
      from {
        transform: translateY(110%);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .reveal-line.delay-1>span {
      animation-delay: 0.15s;
    }

    .reveal-line.delay-2>span {
      animation-delay: 0.3s;
    }

    /* Scroll reveal */
    .r {
      opacity: 1;
      transform: none;
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.js-anim .r:not(.in) {
      opacity: 0;
      transform: translateY(28px);
    }

    .r.in {
      opacity: 1;
      transform: none;
    }

    .r.d1 {
      transition-delay: 0.08s;
    }

    .r.d2 {
      transition-delay: 0.16s;
    }

    .r.d3 {
      transition-delay: 0.24s;
    }

    .r.d4 {
      transition-delay: 0.32s;
    }

    /* Subtle dot grid background */
    .dot-grid {
      background-image: radial-gradient(rgba(212, 182, 132, 0.12) 1px, transparent 1px);
      background-size: 32px 32px;
    }

    /* Button glow */
    .btn-primary {
      position: relative;
      background: linear-gradient(135deg, #e8cfa6, #d4b684);
      color: #08070a;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, filter 0.2s;
      min-height: 44px;
      will-change: transform;
    }

    .btn-primary::after {
      content: '';
      position: absolute;
      inset: -2px;
      background: linear-gradient(135deg, #e8cfa6, #d4b684);
      filter: blur(16px);
      opacity: 0.3;
      z-index: -1;
      transition: opacity 0.25s;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      filter: brightness(1.05);
    }

    .btn-primary:hover::after {
      opacity: 0.7;
    }

    .btn-primary:active {
      transform: translateY(0);
      transition-duration: 0.08s;
    }

    /* Card hover glow */
    .hover-glow {
      position: relative;
      transition: transform 0.4s;
    }

    .hover-glow::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 182, 132, 0.08), transparent 40%);
      border-radius: inherit;
      opacity: 0;
      transition: opacity 0.4s;
      pointer-events: none;
    }

    .hover-glow:hover::before {
      opacity: 1;
    }

    /* Progress bar */
    #progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 2px;
      background: linear-gradient(90deg, #d4b684, #e8cfa6);
      z-index: 1000;
      width: 0%;
      transition: width 0.1s;
    }

    /* Marquee */
    @keyframes marquee {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-50%);
      }
    }

    .marquee-track {
      display: flex;
      animation: marquee 120s linear infinite;
      width: max-content;
    }

    .marquee-track:hover {
      animation-play-state: paused;
    }

    /* Nav */
    #main-nav.stuck {
      background: rgba(8, 7, 10, 0.72);
      backdrop-filter: blur(24px) saturate(150%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Floating card tilt */
    .tilt-card {
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Focus ring */
    input:focus,
    select:focus,
    textarea:focus {
      outline: none;
    }

    /* Honeypot — vizuálně skryté pole pro boty (nesmí být display:none, to boti detekují) */
    .hp-field {
      position: absolute !important;
      left: -9999px !important;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    /* Custom form inputs */
    .input {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.14);
      color: #f4efe6;
      padding: 14px 18px;
      border-radius: 12px;
      transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
      width: 100%;
      font-size: 15px;
      min-height: 48px;
    }

    .input:focus {
      border-color: #d4b684;
      background: rgba(212, 182, 132, 0.05);
      box-shadow: 0 0 0 3px rgba(212, 182, 132, 0.15);
    }

    .input::placeholder {
      color: rgba(244, 239, 230, 0.4);
    }

    select.input {
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23d4b684' stroke-width='1.5' d='M2 4l4 4 4-4'/></svg>");
      background-repeat: no-repeat;
      background-position: right 18px center;
      padding-right: 44px;
    }

    select.input option {
      background: #141219;
      color: #f4efe6;
    }

    /* Hamburger */
    #hamburger {
      display: none;
    }

    @media (max-width: 1024px) {
      #nav-links {
        display: none;
      }

      #hamburger {
        display: flex;
      }
    }

    /* Slide up animation util */
    .slide-up-1 {
      animation: rise 1s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .slide-up-2 {
      animation: rise 1s 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .slide-up-3 {
      animation: rise 1s 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .slide-up-4 {
      animation: rise 1s 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .slide-up-5 {
      animation: rise 1s 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    /* ─── MOBILE OPTIMIZATIONS ─── */
    @media (max-width: 768px) {
      section {
        padding-left: 20px !important;
        padding-right: 20px !important;
      }

      .py-32 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
      }

      .py-28 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
      }

      .lg\:p-16 {
        padding: 2rem !important;
      }

      .p-12 {
        padding: 1.5rem !important;
      }

      .lg\:p-12 {
        padding: 1.5rem !important;
      }

      .p-10 {
        padding: 1.5rem !important;
      }

      .gap-20 {
        gap: 3rem !important;
      }

      h1 {
        font-size: clamp(2.5rem, 11vw, 3.5rem) !important;
        line-height: 1 !important;
      }

      h2 {
        font-size: clamp(2rem, 8vw, 2.75rem) !important;
      }

      .text-5xl,
      .text-6xl {
        font-size: 2rem !important;
        line-height: 1.05 !important;
      }

      .text-4xl,
      .lg\:text-5xl {
        font-size: 1.75rem !important;
      }

      /* Hero ticker pill */
      .glass.rounded-full {
        font-size: 10px !important;
      }

      /* Reduce huge marquee */
      .marquee-track {
        animation-duration: 80s !important;
      }

      /* Stack form rows */
      .lg\:p-16 {
        padding: 2rem 1.5rem !important;
      }

      /* Nav scaling */
      #main-nav {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
      }

      /* Buttons smaller padding on mobile */
      .btn-primary {
        padding: 0.875rem 1.5rem !important;
      }

      /* Stats cards tighter */
      #stats .p-10 {
        padding: 1.75rem 1rem !important;
      }

      .stat-val,
      .font-serif.text-5xl {
        font-size: 2.5rem !important;
      }

      /* Logo */
      .brand-mark {
        font-size: 1rem;
      }

      /* Card stat tiny boxes */
      .grid.grid-cols-3 .glass {
        padding: 0.75rem !important;
      }

      .grid.grid-cols-3 .font-serif.text-3xl {
        font-size: 1.25rem !important;
      }
    }

    @media (max-width: 480px) {
      .grid.grid-cols-3 .font-serif.text-3xl {
        font-size: 1rem !important;
      }

      .grid.grid-cols-3 .text-\[10px\] {
        font-size: 9px !important;
        letter-spacing: 0.1em !important;
      }
    }

    /* ─── Carousel recenzí ─── */
    .reviews-track {
      scrollbar-width: none;
      /* Firefox */
      -ms-overflow-style: none;
      /* IE/Edge */
      scroll-padding-left: 1.5rem;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
    }

    .reviews-track::-webkit-scrollbar {
      display: none;
    }

    /* WebKit */
    @media (min-width: 768px) {
      .reviews-track {
        scroll-padding-left: 0;
      }
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      padding: 0;
      border: 0;
      border-radius: 9999px;
      background: rgba(244, 239, 230, 0.22);
      cursor: pointer;
      transition: background 0.3s, width 0.3s;
    }

    .carousel-dot:hover {
      background: rgba(212, 182, 132, 0.6);
    }

    .carousel-dot.active {
      background: #d4b684;
      width: 22px;
    }

    /* ============================================================
     EXPLICITNÍ BARVY PÍSEM A ODKAZŮ
     Tilda standardně přebarvuje <a> odkazy vlastním stylem
     (typicky modrá). Následující pravidla vynucují naši paletu
     s dostatečnou specificitou a !important, aby Tildu přebila.
     Mění se barvou JEN odkazy — běžný text drží své utility třídy.
     ============================================================ */
    :root {
      --c-cream: #f4efe6;
      /* hlavní text */
      --c-gold: #d4b684;
      /* zlatý akcent */
      --c-gold-light: #e8cfa6;
      --c-gold-dim: #9c8660;
      --c-ink: #08070a;
      /* tmavý text na zlatých tlačítkách */
    }

    body {
      color: var(--c-cream);
    }

    /* Základ: odkazy přebírají barvu okolního textu (ruší modrou od Tildy) */
    body a,
    body a:link,
    body a:visited,
    body a:active,
    body a:focus {
      color: inherit !important;
      text-decoration: none !important;
    }

    /* Zlatá tlačítka — tmavý text musí zůstat tmavý ve všech stavech */
    body a.btn-primary,
    body a.btn-primary:link,
    body a.btn-primary:visited,
    body a.btn-primary:hover,
    body a.btn-primary:active,
    body a.btn-primary:focus,
    body button.btn-primary {
      color: var(--c-ink) !important;
    }

    /* Logo „Mariánek & partneři" */
    body a.brand-mark {
      color: var(--c-cream) !important;
    }

    body a.brand-mark .bm-bot,
    body a.brand-mark .bm-amp {
      color: var(--c-gold) !important;
    }

    /* Navigace — tlumená krémová, na hover plná krémová */
    #nav-links a {
      color: rgba(244, 239, 230, 0.6) !important;
    }

    #nav-links a:hover,
    #nav-links a:focus {
      color: var(--c-cream) !important;
    }

    /* Zlaté odkazy (zásady ochrany soukromí, „Konzultace" v mobilním menu) */
    body a.text-gold,
    body a.text-gold:hover,
    body a.text-gold:focus {
      color: var(--c-gold) !important;
    }

    /* Zachovat podtržení tam, kde ho chceme */
    body a.underline,
    body a.underline:hover {
      text-decoration: underline !important;
    }

    /* Hover → zlatá u obsahových, kontaktních a patičkových odkazů */
    #mobile-menu a:hover,
    #mobile-menu a:focus,
    #rezervace a:hover,
    #rezervace a:focus,
    footer a:hover,
    footer a:focus {
      color: var(--c-gold) !important;
    }
