/* ==========================================================================
   Nastavitelný rošt — Varianta 4: "Teplo & Editorial" (mix)
   Teplá paleta (terakota + olivová) z varianty 2 + editorialní, klidnější
   kresba tvarů z varianty 3, ale s plovoucí hlavičkou při scrollu
   (jako u variant 1/2). Rozložení stránky je částečně prohozené.
   ========================================================================== */

:root {
  --radius-sm: 0.2rem;
  --radius-md: 0.3rem;
  --radius-lg: 0.4rem;
  --radius-xl: 0.5rem;
  --radius-2xl: 0.6rem;

  /* Teplá paleta — terakota + olivová + krémová (jako varianta 2) */
  --forest: oklch(0.5 0.14 40);      /* terakota (primary) */
  --moss:   oklch(0.52 0.09 130);    /* olivová (accent) */
  --sage:   oklch(0.88 0.03 90);
  --ink:    oklch(0.24 0.02 50);
  --cream:  oklch(0.99 0.006 80);
  --sand:   oklch(0.93 0.02 75);

  --background: oklch(0.995 0.004 75);
  --foreground: var(--ink);
  --card: oklch(1 0 0);
  --primary: var(--forest);
  --primary-foreground: var(--cream);
  --secondary: var(--sand);
  --secondary-foreground: var(--ink);
  --muted: oklch(0.97 0.006 70);
  --muted-foreground: oklch(0.46 0.03 55);
  --accent: var(--moss);
  --accent-foreground: var(--cream);
  --destructive: oklch(0.55 0.2 30);
  --border: oklch(0.88 0.015 65);
  --input: oklch(0.85 0.02 65);

  --gradient-hero: none;
  --gradient-forest: linear-gradient(135deg, var(--forest), var(--moss));
  --shadow-soft: 0 1px 2px oklch(0.3 0.05 50 / 0.05), 0 8px 20px oklch(0.3 0.05 50 / 0.06);
  --shadow-elevated: 0 4px 10px oklch(0.3 0.05 50 / 0.08), 0 20px 44px -14px oklch(0.4 0.1 40 / 0.22);
  --shadow-glow: 0 0 0 1px oklch(0.52 0.09 130 / 0.14), 0 14px 36px -16px oklch(0.5 0.14 40 / 0.4);

  --font-display: "Playfair Display", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: color-mix(in oklab, var(--moss) 30%, transparent); }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }

.text-accent { color: var(--accent); font-style: italic; }
.text-muted { color: var(--muted-foreground); }
.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
  font-weight: 600;
}

/* Tlačítka: žádné výplně, jen podtržená linka + šipka, jako v redakčním designu */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1.5px solid currentColor;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: var(--radius-md);
}
.btn svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { color: var(--primary); }
.btn-primary:hover { color: var(--accent); border-color: var(--accent); }
.btn-outline { color: var(--muted-foreground); border-bottom-color: var(--border); }
.btn-outline:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { font-size: 0.875rem; }

.glass {
  background: color-mix(in oklab, var(--cream) 78%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid color-mix(in oklab, var(--forest) 10%, transparent);
}

/* ---------- Header / navigace — plovoucí efekt při scrollu (jako u var. 1/2) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition: padding 0.4s ease;
  background: none;
  border-bottom: none;
}
.site-header.scrolled { padding: 0.55rem 0; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  height: 3.6rem;
  padding: 0 1.1rem;
  transition: all 0.4s ease;
}
.site-header.scrolled .navbar {
  background: color-mix(in oklab, var(--cream) 78%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid color-mix(in oklab, var(--forest) 10%, transparent);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}
.brand-mark {
  display: grid;
  place-items: center;
  height: 2.1rem; width: 2.1rem;
  color: var(--primary-foreground);
  overflow: hidden;
}
.brand-mark svg { width: 1.05rem; height: 1.05rem; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--primary); background: color-mix(in oklab, var(--primary) 6%, transparent); }
.nav-links a.active { color: var(--primary); background: color-mix(in oklab, var(--primary) 6%, transparent); }

.nav-cta { display: none; }
.nav-toggle {
  display: grid;
  place-items: center;
  height: 2.5rem; width: 2.5rem;
  border-radius: var(--radius-md);
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0.5rem;
}
.mobile-menu.open { max-height: 20rem; }
.mobile-menu ul {
  background: color-mix(in oklab, var(--cream) 85%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid color-mix(in oklab, var(--forest) 10%, transparent);
  border-radius: var(--radius-xl);
  padding: 0.6rem;
  box-shadow: var(--shadow-soft);
}
.mobile-menu a { display: block; padding: 0.8rem 0.9rem; border-radius: var(--radius-lg); }
.mobile-menu a:hover { color: var(--primary); background: color-mix(in oklab, var(--primary) 6%, transparent); }

@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 9rem 0 5rem; overflow: hidden; background: var(--background); }
.hero-blob { display: none; } /* žádné dekorativní tvary v minimalistické verzi */
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--foreground);
}
.badge-dot { height: 0.4rem; width: 0.4rem; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 { margin-top: 1.75rem; font-size: 3rem; font-weight: 600; line-height: 1.1; }
.hero p.lead { margin-top: 1.5rem; font-size: 1.05rem; color: var(--muted-foreground); max-width: 30rem; line-height: 1.7; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-facts {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.hero-facts span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts svg { width: 1rem; height: 1rem; color: var(--primary); }

.hero-media { position: relative; }
.hero-media-glow { display: none; }
.hero-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0;
}
.hero-card img { border-radius: var(--radius-md); width: 100%; height: auto; }
.hero-price {
  position: static;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1.1rem 1.4rem;
}
.hero-price .label { font-size: 0.7rem; opacity: 0.75; }
.hero-price .amount { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.hero-price a { border-radius: var(--radius-md); border-bottom: 1.5px solid currentColor; padding: 0.3rem 0; font-size: 0.85rem; font-weight: 500; }
.hero-price a:hover { color: var(--accent); }

@media (min-width: 1024px) {
  .hero { padding: 10.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 0.9fr 1.1fr; }
  .hero h1 { font-size: 4rem; }
  /* Prohozené strany oproti běžnému layoutu: obrázek vlevo, text vpravo */
  .hero-grid > *:first-child { order: 2; }
  .hero-grid > *:last-child { order: 1; }
}
@media (min-width: 640px) and (max-width: 1023px) { .hero h1 { font-size: 3.5rem; } }

/* ---------- Marquee ---------- */
.marquee {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 46s linear infinite;
  white-space: nowrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 0.75rem; }
.marquee-track i { width: 1px; height: 0.85rem; background: var(--border); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

/* ---------- Sekce obecně ---------- */
section { padding: 6rem 0; }
.section-tight { padding: 4.5rem 0; }

.intro-grid { display: grid; gap: 2.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.stat-card { padding: 1.25rem 1.25rem 0 0; border-right: 1px solid var(--border); }
.stat-card:last-child { border-right: none; }
.stat-card .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--primary); }
.stat-card .label { font-size: 0.72rem; color: var(--muted-foreground); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }

@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: repeat(12, 1fr); }
  .intro-grid .col-5 { grid-column: span 5; }
  .intro-grid .col-7 { grid-column: span 7; }
  /* Prohozené pořadí: nadpis vpravo, obsah vlevo */
  .intro-grid .col-5 { order: 2; }
  .intro-grid .col-7 { order: 1; }
}

/* ---------- Karty produktů / výhod ---------- */
.card-grid { display: grid; gap: 0; margin-top: 3rem; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (min-width: 768px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.product-card {
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 2.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { background: var(--muted); transform: none; box-shadow: none; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; }
.tag { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--foreground); padding: 0.3rem 0.7rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.price { color: var(--primary); font-family: var(--font-display); font-weight: 600; }
.product-card h2 { margin-top: 1.5rem; font-size: 1.5rem; font-weight: 600; }
.product-card .desc { margin-top: 0.75rem; color: var(--muted-foreground); line-height: 1.65; }
.feature-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.feature-list svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; }
.product-card .btn { margin-top: 2rem; align-self: flex-start; }

.benefit-card {
  border-radius: var(--radius-md);
  background: var(--card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  height: 100%;
  transition: background 0.2s ease;
}
.benefit-card:hover { background: var(--muted); border-color: var(--border); transform: none; box-shadow: none; }
.benefit-icon {
  display: grid;
  place-items: center;
  height: 2.75rem; width: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: none;
}
.benefit-icon svg { width: 1.15rem; height: 1.15rem; }
.benefit-card h2 { margin-top: 1.4rem; font-size: 1.2rem; font-weight: 600; }
.benefit-card p { margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.88rem; line-height: 1.65; }

/* card-grid v této variantě už kreslí ohraničení samo — zvětšíme okraje karet o border-left kompenzaci */
.card-grid { border-left: none; }
.product-card, .benefit-card { border-left: 1px solid var(--border); border-top: none; margin-left: -1px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info p.lead { margin-top: 1.25rem; color: var(--muted-foreground); max-width: 28rem; line-height: 1.7; }
.contact-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.contact-list li { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-list a:hover { color: var(--accent); }
.contact-icon {
  display: grid;
  place-items: center;
  height: 2.25rem; width: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-icon svg { width: 0.95rem; height: 0.95rem; }

.contact-form {
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 2.25rem;
  display: grid;
  gap: 1.5rem;
}
.field label { display: block; }
.field span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.field input, .field textarea {
  margin-top: 0.6rem;
  width: 100%;
  border-radius: var(--radius-md);
  border: none;
  border-bottom: 1.5px solid var(--input);
  background: transparent;
  padding: 0.6rem 0.1rem;
  font: inherit;
  color: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: none; }
.field textarea { resize: none; }
.error-text { color: var(--destructive); font-size: 0.75rem; margin-top: 0.3rem; display: block; }
.success-text { color: var(--accent); font-size: 0.9rem; }
.honeypot { display: none; }

.page-content { flex: 1 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0; background: var(--ink); color: color-mix(in oklab, white 82%, transparent); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3rem 0; max-height: 11rem;}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand a { color: white; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand a:hover { opacity: 0.85; }
.footer-brand-mark {
  display: grid;
  place-items: center;
  height: 2.1rem; width: 2.1rem;
  border-radius: 50%;
  background: white;
  overflow: hidden;
  padding: 0.2rem;
  flex-shrink: 0;
}
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand + p, .footer-grid p { margin-top: 1rem; font-size: 0.88rem; opacity: 0.75; max-width: 20rem; line-height: 1.65; }
.footer-heading { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.25em; opacity: 0.55; }
.footer-links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.88rem; }
.footer-links a, .footer-links li { opacity: 0.85; }
.footer-links a:hover { opacity: 1; }
@media (min-width: 640px) { .footer-contact { text-align: right; } }
@media (min-width: 640px) { .footer-contact .footer-links { align-items: flex-end; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 1.25rem; font-size: 0.72rem; opacity: 0.65;
}

/* ---------- Reveal-on-scroll animace (jemnější, bez posunu) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 8rem 1rem 4rem; }
.notfound h1 { font-size: 4rem; font-weight: 700; }
.notfound h2 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; }
.notfound p { margin-top: 0.5rem; color: var(--muted-foreground); }
.notfound .btn { margin-top: 1.5rem; }

/* ---------- Konfigurátor (výběr rozměru + rukojeť) ---------- */
.configurator {
  margin-top: 3rem;
  border-radius: var(--radius-2xl);
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.handle-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--muted);
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
}

.configurator-layout {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 900px) {
  .configurator-layout { grid-template-columns: 1.25fr 1fr; align-items: center; }
}

.configurator-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--muted);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.configurator-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.toggle-btn {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}
.toggle-btn:hover { color: var(--foreground); }
.toggle-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .size-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .size-grid { grid-template-columns: repeat(4, 1fr); } }

.size-btn {
  padding: 1.1rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid color-mix(in oklab, var(--border) 80%, transparent);
  background: var(--background);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}
.size-btn:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.size-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.config-summary {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.config-summary-label { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--foreground); }
.config-summary-sub { margin-top: 0.3rem; font-size: 0.875rem; color: var(--muted-foreground); }
.config-cta { flex-shrink: 0; }

.config-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 42rem;
}
