/* ═══════════════════════════════════════════════════════════
   Renesance – hudební studio
   Paleta a principy vycházejí z docs/reserse/README.md:
   krémový podklad, teplá černá, jedna dominantní barva (terakota)
   + tlumená barva pro každý obor; Baloo 2 + Nunito Sans;
   vlnovky mezi sekcemi; systematické naklonění karet.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #F8F5F0;          /* krémový podklad, ne bílá */
  --bg-alt: #FFFDF8;      /* střídavá sekce */
  --bg-color: #F3E9DC;    /* zvýrazněná sekce (Zpívání) */
  --ink: #2D2A26;         /* teplá černá, ne #000 */
  --muted: #6B655C;
  --terra: #C05B3F;       /* dominantní – ladí se zlatým R */
  --terra-dark: #A84A31;
  --gold: #D9952B;
  --green: #5F8C61;
  --blue: #4A6FA5;
  --purple: #8A5A97;
  --teal: #3E8E8C;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(45, 42, 38, .07);
  --font-head: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--terra-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .5em; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ── Tlačítka ─────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  padding: .68em 1.5em;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--terra-dark); transform: translateY(-2px) rotate(-1deg); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-small { font-size: .95rem; padding: .5em 1.2em; }
.btn-big { font-size: 1.15rem; padding: .8em 2em; }

/* ── Hlavička ─────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .55rem 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(45, 42, 38, .08);
}
.brand { display: flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand-name {
  font-family: var(--font-head); font-weight: 500; font-size: 1.45rem;
  display: flex; flex-direction: column; line-height: 1;
  margin-left: -4px; margin-top: 8px;
}
.brand-name small {
  font-family: var(--font-body); font-weight: 600; font-size: .58rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  margin-top: 2px;
}

.nav-toggle summary { list-style: none; display: none; cursor: pointer; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-list { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-list a:not(.btn) {
  position: relative;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1rem;
  padding: .3em 0;
}
/* trik z hudbadetem.cz: každá položka má svou barvu podtržení */
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 2px;
  background: var(--terra);
  opacity: 0; transform: scaleX(.4);
  transition: opacity .25s, transform .25s;
}
.nav-list li:nth-child(2) a:not(.btn)::after { background: var(--green); }
.nav-list li:nth-child(3) a:not(.btn)::after { background: var(--blue); }
.nav-list a:not(.btn):hover::after,
.nav-list a:not(.btn):focus-visible::after { opacity: 1; transform: scaleX(1); }

/* ── Hero ─────────────────────────────────────── */
.hero { padding: clamp(2.2rem, 6vw, 4rem) 0 2.2rem; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 2rem; align-items: center;
}
.hero-kicker {
  font-weight: 700; font-size: .92rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--terra-dark);
  margin-bottom: .9rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  margin-bottom: .55em;
}
.hero-sub { font-size: 1.13rem; max-width: 34em; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }

.hero-logo { position: relative; text-align: center; }
.hero-logo::before {
  content: ""; position: absolute; z-index: -1;
  inset: -6% 12% 2% 12%;
  background: var(--bg-color);
  border-radius: 48% 52% 57% 43% / 52% 44% 56% 48%;
  rotate: -7deg;
}
.hero-logo img {
  width: min(220px, 55%);
  filter: drop-shadow(0 6px 18px rgba(45, 42, 38, .18));
  rotate: 2deg;
}
.note { position: absolute; width: 30px; color: var(--terra); opacity: .75; }
.note-1 { top: 4%; right: 12%; rotate: 14deg; color: var(--gold); }
.note-2 { bottom: 8%; left: 10%; rotate: -12deg; color: var(--blue); width: 24px; }

/* stupnice na hraní – noty na notové osnově */
.tone-row {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: .3rem 1rem;
  margin-top: 1.9rem;
}
.tone-label, .tone-hint { font-size: .95rem; color: var(--muted); font-weight: 600; padding-bottom: .9rem; }
.tone-hint { opacity: 0; transition: opacity .6s; }
.tone-hint.on { opacity: 1; }
.tone-dots {
  position: relative;
  display: flex; align-items: flex-end; gap: .62rem;
  height: 96px; padding: 0 20px 4px;
}
.tone-dots::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px;
  height: 47px; pointer-events: none;
  background: repeating-linear-gradient(to top,
    color-mix(in srgb, var(--ink) 32%, transparent) 0 1.5px,
    transparent 1.5px 11.5px);
}
.tone {
  position: relative;
  width: 23px; height: 18px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--c);
  translate: 0 var(--up, 0);
  transition: scale .12s ease;
}
.tone::after {
  content: ""; position: absolute; right: -1px; bottom: 7px;
  width: 2.5px; height: 30px; border-radius: 2px;
  background: var(--c);
}
.tone:nth-child(1) { --up: 0px; }
.tone:nth-child(2) { --up: -6px; }
.tone:nth-child(3) { --up: -12px; }
.tone:nth-child(4) { --up: -17px; }
.tone:nth-child(5) { --up: -23px; }
.tone:nth-child(6) { --up: -29px; }
.tone:nth-child(7) { --up: -35px; }
.tone:nth-child(8) { --up: -40px; }
.tone:hover { scale: 1.18; }
.tone.playing { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.4); } }

/* ── Běžící pás ── */
.marquee {
  position: relative; z-index: 3;
  background: var(--terra); color: #fff;
  rotate: -1.2deg;
  margin: 1.6rem -2vw -1.2rem;
  padding: .5rem 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(45, 42, 38, .14);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: 1.02rem;
  letter-spacing: .02em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ── Sekce a vlnovky ─────────────────────────── */
.section { position: relative; padding: 2.7rem 0 3.2rem; }
.section-alt { background: var(--bg-alt); }
.section-color { background: var(--bg-color); }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 2rem; }

.wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; color: var(--bg); }
.wave svg { width: 100%; height: 26px; display: block; transform: rotate(180deg); }
.section-alt .wave, .wave-alt { color: var(--bg); }
.section .wave { color: var(--bg); }
#kurzy .wave { color: var(--bg); }            /* z hero (bg) do alt */
#zpivani .wave { color: var(--bg-alt); }
#cenik .wave { color: var(--bg-color); }
#faq .wave { color: var(--bg); }
#prihlaska .wave { color: var(--bg-alt); }
.wave-footer { color: var(--bg) !important; }

/* ── Karty kurzů ─────────────────────────────── */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.card {
  background: color-mix(in srgb, var(--accent) 9%, #fff);
  border-radius: var(--radius);
  border: 1.5px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cards .card:nth-child(odd) { rotate: -0.7deg; }
.cards .card:nth-child(even) { rotate: 0.7deg; }
.card:hover, .card[open] { rotate: 0deg; box-shadow: 0 6px 22px rgba(45, 42, 38, .12); }

.card summary {
  list-style: none; cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .1rem .9rem; align-items: center;
  padding: 1.05rem 1.15rem;
}
.card summary::-webkit-details-marker { display: none; }
.card-icon {
  width: 52px; height: 52px;
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  background: color-mix(in srgb, var(--accent) 20%, #fff);
  border-radius: 12px;
  display: grid; place-items: center;
}
.card-icon svg { width: 34px; height: 34px; }
.card-head h3 { font-size: 1.25rem; }
.card-head p { font-size: .95rem; color: var(--muted); line-height: 1.45; margin-top: .15em; }
.card-body .card-meta {
  font-size: .8rem; font-weight: 700; color: color-mix(in srgb, var(--accent) 62%, var(--ink));
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .5em;
}
.card-more {
  font-family: var(--font-head);
  font-size: 1.5rem; color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  transition: transform .2s ease;
}
.card[open] .card-more { transform: rotate(45deg); }
.card-body { padding: 0 1.3rem 1.3rem; }
.card-body p + p { margin-top: .7em; }
.card-body { font-size: .98rem; }

/* ── Zpívání s Renesancí ─────────────────────── */
.zpivani-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.zpivani-photos { display: grid; gap: 1.4rem; justify-items: center; }
.zpivani-grid p + p { margin-top: .8em; }
.zpivani-note { font-family: var(--font-head); font-size: 1.15rem; color: var(--terra-dark); }

/* ── Momentky (polaroidy) ────────────────────── */
.snapshots {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: flex-start;
  gap: 1.8rem 2.2rem;
  margin-top: 2.8rem;
}
.snap {
  background: #fff;
  padding: 10px 10px 12px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(45, 42, 38, .16);
  rotate: var(--tilt, 0deg);
  translate: 0 var(--shift, 0px);
  transition: rotate .2s ease, scale .2s ease;
  position: relative;
}
.snap:hover { rotate: 0deg; scale: 1.03; z-index: 2; }
.snap img { display: block; border-radius: 3px; width: 100%; height: auto; }
.snap figcaption {
  font-family: var(--font-head); font-weight: 500;
  font-size: .95rem; color: var(--muted);
  text-align: center; padding-top: .55rem;
}
.snap-a { max-width: 320px; }
.snap-b { max-width: 230px; }
.snap-c { max-width: 210px; }
.snap::before {
  content: ""; position: absolute; top: -13px; left: 50%;
  translate: -50% 0; rotate: -4deg;
  width: 90px; height: 26px; border-radius: 2px;
  background: color-mix(in srgb, var(--gold) 38%, #fff);
  opacity: .9;
  box-shadow: 0 1px 3px rgba(45, 42, 38, .14);
}

/* ── Ceník ───────────────────────────────────── */
.pricing { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pricing caption { caption-side: bottom; font-size: .88rem; color: var(--muted); padding: .7em .5em 0; text-align: left; }
.pricing th, .pricing td { padding: .75em 1em; text-align: left; }
.pricing thead th {
  font-family: var(--font-head); font-weight: 500;
  background: var(--terra); color: #fff; font-size: .95rem;
}
.pricing tbody tr:nth-child(even) { background: var(--bg-alt); }
.pricing td:last-child { font-weight: 700; white-space: nowrap; }
.pricing-notes { list-style: none; margin-top: 1.6rem; display: grid; gap: .5rem; }
.pricing-notes li { font-size: .97rem; }

/* ── FAQ ─────────────────────────────────────── */
.faq-item {
  background: #fff; border-radius: 12px;
  border: 1.5px solid rgba(45, 42, 38, .09);
  box-shadow: var(--shadow);
  margin-bottom: .7rem;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: 1.08rem;
  padding: .9rem 2.6rem .9rem 1.15rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: .8rem;
  font-size: 1.3rem; color: var(--terra);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.15rem 1rem; font-size: .97rem; }

/* ── Přihláška ───────────────────────────────── */
.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem;
  background: #fff; padding: 1.6rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
  rotate: -0.4deg;
}
.field { display: flex; flex-direction: column; gap: .3rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.req { color: var(--terra); }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit;
  padding: .6em .8em;
  border: 1.5px solid rgba(45, 42, 38, .2);
  border-radius: 10px;
  background: var(--bg-alt);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terra); }
.hp { position: absolute; left: -9999px; }
.form-actions { flex-direction: row; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-alt { font-size: .95rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; font-weight: 700; min-height: 1.3em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #B3402E; }

/* ── Patička ─────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--terra);
  color: #fff;
  padding: 3.2rem 0 2.2rem;
  margin-top: 0;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-slogan { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.footer-sub { opacity: .85; margin-top: .3em; }
.footer-contact { font-style: normal; display: grid; gap: .4rem; }
.footer-contact a { text-decoration: none; font-weight: 700; }
.footer-contact a:hover { text-decoration: underline; }
.footer-note { font-size: .92rem; opacity: .92; }
.footer-fine { margin-top: 1em; font-size: .8rem; opacity: .75; }

/* ── Responzivita ────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 130px; rotate: 3deg; }
  .note { display: none; }
  .cards { grid-template-columns: 1fr; }
  .zpivani-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .snapshots { flex-direction: column; align-items: center; gap: 1.7rem; }
  .snap, .snap-a, .snap-b, .snap-c { --shift: 0px; max-width: min(300px, 82vw); }
  .marquee { rotate: -1deg; margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .signup { grid-template-columns: 1fr; padding: 1.2rem; }
}
@media (max-width: 640px) {
  .nav-toggle summary {
    display: flex; flex-direction: column; gap: 5px;
    padding: 10px 6px;
  }
  .nav-toggle summary span {
    width: 24px; height: 2.5px; border-radius: 2px;
    background: var(--ink); display: block;
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle[open] summary span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[open] summary span:nth-child(2) { opacity: 0; }
  .nav-toggle[open] summary span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-list {
    position: absolute; right: 12px; top: 62px;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg-alt);
    border: 1.5px solid rgba(45, 42, 38, .12);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(45, 42, 38, .18);
    padding: .8rem 1rem;
    min-width: 190px;
  }
  .nav-list a:not(.btn) { display: block; padding: .5em .2em; }
  .nav-list .btn { text-align: center; margin-top: .4rem; }
  .card summary { grid-template-columns: 44px 1fr auto; padding: .95rem 1rem; }
  .card-icon { width: 44px; height: 44px; }
  .card-icon svg { width: 28px; height: 28px; }
  .pricing { font-size: .9rem; }
  .pricing th, .pricing td { padding: .6em .6em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
