/* ===== Klavir Hvězda — design system ===== */
:root {
  --lavender: #e7e1f5;
  --lavender-deep: #9a8bc4;
  --graphite: #2b2b33;
  --graphite-soft: #4a4a55;
  --mint: #bfe3d4;
  --linen: #f6f1e7;
  --red: #c3433f;
  --cream: #fffaf3;
  --ink: #1e1e24;
  --radius: 14px;
  --shadow-1: 0 10px 30px -12px rgba(43,43,51,.25);
  --shadow-2: 0 2px 10px rgba(43,43,51,.12);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--graphite); margin: 0 0 .5em; line-height: 1.1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- grain overlay ---------- */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; opacity: .035; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 2px solid var(--graphite); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .7rem 1.25rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--graphite); flex: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.main-nav a { color: var(--graphite-soft); font-weight: 600; position: relative; padding: .3rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--graphite); }
.nav-cart { display: flex; align-items: center; gap: .4rem; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.burger { display: none; background: none; border: none; cursor: pointer; color: var(--graphite); padding: .4rem; min-width: 44px; min-height: 44px; }
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 860px) {
  .burger { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--cream); flex-direction: column; align-items: flex-start; gap: 1.6rem; padding: 5.5rem 1.6rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; border-left: 2px solid var(--graphite); margin-left: 0; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid var(--graphite); background: var(--cream); color: var(--graphite); position: relative; overflow: hidden; transition: color .25s ease, border-color .25s ease; }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--graphite); transition: left .3s ease; z-index: 0; }
.btn-sweep { background: var(--cream); }
.btn-sweep span, .btn-sweep { position: relative; }
.btn-sweep:hover::before { left: 0; }
.btn-sweep:hover { color: #fff; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary.btn-sweep::before { background: var(--graphite); }
.btn-ghost { background: transparent; border-color: currentColor; }
.cookie-banner .btn-ghost { color: var(--cream); border-color: var(--cream); }
.btn-sm { min-height: 36px; padding: .4rem 1rem; font-size: .85rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ---------- hero (home) ---------- */
.hero { position: relative; max-width: 1200px; margin: 0 auto; padding: 3rem 1.25rem 4rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero-blob { position: absolute; z-index: -1; width: 620px; height: 620px; top: -80px; right: -120px; opacity: .55; }
.hero-blob path { fill: var(--mint); animation: morph 14s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { d: path("M300,60 C420,40 560,140 580,300 C600,460 460,580 300,580 C140,580 40,460 40,300 C40,140 180,80 300,60 Z"); }
  50% { d: path("M300,80 C440,60 540,180 560,300 C580,440 440,560 300,560 C160,560 60,440 60,300 C60,180 160,100 300,80 Z"); }
}
.hero-headline { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .6rem; }
.hero-headline em { color: var(--red); font-style: normal; }
.hero-sub { font-size: 1.1rem; color: var(--graphite-soft); max-width: 36ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); box-shadow: var(--shadow-1); aspect-ratio: 4/5; object-fit: cover; }
.hero-tag { position: absolute; bottom: -18px; left: -18px; background: var(--cream); border: 2px solid var(--graphite); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-2); }

/* ---------- collage / sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.25rem; }
.section-head { max-width: var(--measure); margin-bottom: 2rem; }
.collage { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.collage-item { grid-column: span 3; position: relative; }
.collage-item.is-wide { grid-column: span 4; }
.collage-item.is-narrow { grid-column: span 2; }
.collage-item img { border-radius: var(--radius); box-shadow: var(--shadow-2); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.collage-caption { position: absolute; bottom: -14px; right: -10px; background: var(--red); color: #fff; padding: .4rem .9rem; border-radius: 10px; font-size: .8rem; font-weight: 700; transform: rotate(-2deg); }
@media (max-width: 760px) { .collage { grid-template-columns: repeat(2, 1fr); } .collage-item, .collage-item.is-wide, .collage-item.is-narrow { grid-column: span 2; } }

/* ---------- Rytmoměr feature ---------- */
.rytmomer { background: var(--graphite); color: var(--cream); border-radius: var(--radius); padding: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: center; }
.rytmomer h2 { color: var(--cream); }
.rytmomer p { color: #cfcbe0; max-width: 46ch; }
.rh-stage { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.rh-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--mint); }
.rh-dot.beat { animation: rhpulse .25s ease; }
@keyframes rhpulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.rh-controls { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.rh-result { min-height: 1.4em; font-weight: 700; color: var(--mint); max-width: 30ch; text-align: center; }
@media (max-width: 760px) { .rytmomer { grid-template-columns: 1fr; } }

/* ---------- product strip / catalog ---------- */
.product-strip, .product-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 640px) {
  .product-strip { grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .product-strip .card { scroll-snap-align: start; }
}
.card { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); }
.card-media { overflow: hidden; aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-price { font-weight: 700; color: var(--red); }
.card-meta { font-size: .85rem; color: var(--graphite-soft); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- inner-page components ---------- */
.page-hero { background: var(--lavender); border-bottom: 2px solid var(--graphite); padding: 3.2rem 1.25rem; text-align: left; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: var(--graphite-soft); max-width: var(--measure); }

.breadcrumbs { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem 0; font-size: .85rem; color: var(--graphite-soft); }
.breadcrumbs a { color: var(--graphite-soft); }
.breadcrumbs a:hover { color: var(--red); }

.prose { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--graphite-soft); }
.prose ul { padding-left: 1.2rem; }

.legal-toc { max-width: var(--measure); margin: 2rem auto 0; padding: 1.2rem 1.4rem; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-2); }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }

.notice { max-width: var(--measure); margin: 1.5rem auto; padding: 1rem 1.3rem; border-left: 4px solid var(--mint); background: #eef7f1; border-radius: 0 10px 10px 0; font-size: .92rem; }
.notice.notice-warn { border-left-color: var(--red); background: #fbecea; }

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 760px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select { min-height: 44px; padding: .6rem .8rem; border: 2px solid var(--graphite); border-radius: 10px; font: inherit; background: var(--cream); accent-color: var(--red); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--red); font-size: .82rem; min-height: 1.1em; }
.form-msg { font-size: .9rem; min-height: 1.3em; }
.form-msg.is-success { color: #2f7a4f; }
.form-msg.is-error { color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.faq-item { border-bottom: 1px solid #ddd6ea; padding: .4rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .8rem .2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--red); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 .2rem 1rem; color: var(--graphite-soft); }

.product-detail { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.product-detail img { border-radius: var(--radius); box-shadow: var(--shadow-1); aspect-ratio: 4/3; object-fit: cover; }
.product-detail .price-row { display: flex; align-items: baseline; gap: .7rem; }
.product-detail .price-row .price { font-size: 1.6rem; font-weight: 700; color: var(--red); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; max-width: 1000px; margin: 0 auto 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid #ddd6ea; }
.cart-summary { max-width: 360px; margin-left: auto; background: var(--cream); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-2); }
.cart-summary .row { display: flex; justify-content: space-between; padding: .4rem 0; }
.cart-summary .row.total { font-weight: 700; border-top: 2px solid var(--graphite); margin-top: .4rem; padding-top: .8rem; }

.contact-layout { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info .item { display: flex; gap: .7rem; align-items: flex-start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- divider / ornament ---------- */
.section-divider { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #d9d6e6; margin-top: 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; }
.footer-brand { min-width: 0; }
.footer-brand .logo-word { color: #fff; font-size: 1.15rem; }
.footer-brand p { color: #b7b3cc; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer-col a { color: #cfcbe0; }
.footer-col a:hover { color: #fff; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { min-height: 44px; border-radius: 8px; border: none; padding: 0 .8rem; flex: 1; min-width: 150px; }
.footer-mail { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; color: #cfcbe0; }
.footer-bottom { border-top: 1px solid #45454f; display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 1.1rem 1.25rem; font-size: .85rem; color: #a7a2c2; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; background: var(--graphite); color: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-1); z-index: 80; display: flex; flex-direction: column; gap: .9rem; }
.cookie-banner a { color: var(--mint); }
.cookie-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1rem; }
.center-text { text-align: center; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ===== COMPONENTS: .class - what it is =====
.site-header - sticky header bar
.logo / .logo-mark / .logo-word - SVG logo + wordmark
.main-nav - primary nav, becomes off-canvas drawer on mobile via .is-open
.burger - mobile nav toggle button
.cart-count - booking basket count badge (bumps with .bump)
.btn / .btn-primary / .btn-ghost / .btn-sweep / .btn-sm - button variants incl. fill-sweep hover
.hero / .hero-blob / .hero-headline / .hero-sub / .hero-actions / .hero-visual / .hero-tag - home hero composition
.section / .section-head - generic content section wrapper
.collage / .collage-item / .collage-caption - asymmetric home photo collage
.rytmomer / .rh-stage / .rh-dot / .rh-controls / .rh-result - signature rhythm-test feature
.product-strip / .product-grid / .card / .card-media / .card-body / .card-price / .card-meta - product/service cards, strip scroll-snaps on mobile
.reveal / .in-view - scroll-reveal animation hook
.page-hero / .page-hero-inner - inner page title band
.breadcrumbs - breadcrumb trail
.prose - long-form legal/readable text column
.legal-toc - legal page table of contents box
.notice / .notice-warn - callout box, warning variant
.form-grid / .field / .field-error / .form-msg / .hp - form layout, field group, error text, submit feedback, honeypot
.faq-item - details/summary FAQ row
.product-detail - product/service detail two-column layout
.cart-table / .cart-summary - booking basket table and totals box
.contact-layout / .contact-info - contact page two-column layout
.section-divider - wavy SVG divider between sections
.site-footer / .footer-inner / .footer-col / .newsletter-form / .footer-mail / .footer-bottom - footer regions
.cookie-banner / .cookie-actions - cookie consent banner
.grain - fixed noise texture overlay
.sr-only - visually hidden, accessible text
.grid-2 / .flow / .center-text / .mt-0 / .mb-0 - small layout/spacing utilities
*/

/* wg-contrast-autofix */
div.rytmomer.reveal div p.rh-controls button.btn.btn-ghost { color: #ffffff !important; }
