/* Rada a pomoc – Radka Polcerová */
:root {
  --bg: #faf6f0;
  --paper: #ffffff;
  --ink: #2b211c;
  --muted: #6f6158;
  --line: #eadfd2;
  --accent: #b5541c;
  --accent-dark: #8f3f12;
  --gold: #e3a03a;
  --soft: #fbefe2;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--paper); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Hlavička ---------- */
.site-header {
  background:
    radial-gradient(ellipse 60% 120% at 78% 115%, rgba(255, 196, 92, .55), transparent 60%),
    linear-gradient(170deg, #160e0b 0%, #3a1a11 45%, #8a3613 80%, #c9661f 100%);
  color: #fff3e3;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.6rem; padding-bottom: 1.6rem;
}
.brand { display: flex; align-items: center; gap: 1rem; color: inherit; text-decoration: none; }
.brand img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255, 220, 160, .7);
}
.brand-name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; letter-spacing: .01em; }
.brand-sub { font-size: .9rem; opacity: .8; letter-spacing: .04em; }
.brand:hover { color: #fff; }

.menu-btn {
  display: none; cursor: pointer; user-select: none;
  border: 1px solid rgba(255, 230, 190, .5); border-radius: 999px;
  padding: .45rem 1rem; font-size: .95rem; color: #fff3e3;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Rozvržení ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

.layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3rem;
}

/* ---------- Navigace ---------- */
.side nav { position: sticky; top: 1.5rem; }
.side ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.side li a {
  display: block; padding: .42rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .97rem; line-height: 1.35;
}
.side li a:hover { background: var(--soft); color: var(--accent-dark); }
.side li a[aria-current="page"] { background: var(--accent); color: #fff; }
.side .label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 0 0 .4rem .8rem;
}
.side ul.sub { margin: .2rem 0 .3rem .8rem; border-left: 2px solid var(--line); }
.side ul.sub a { font-size: .92rem; padding: .3rem .7rem; }
.side ul.sub a[aria-current="page"] { background: var(--soft); color: var(--accent-dark); font-weight: 600; }

/* ---------- Obsah ---------- */
main { min-width: 0; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.6rem 3rem; box-shadow: 0 1px 2px rgba(60, 30, 10, .04), 0 12px 32px -18px rgba(60, 30, 10, .18);
}
.card > *:first-child { margin-top: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: #24160f; }
h1 { font-size: 2.15rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.18rem; margin: 1.8rem 0 .5rem; }
p { margin: 0 0 1.05rem; }

.lead { font-size: 1.15rem; color: #47362c; }
.eyebrow {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin: 0 0 .5rem; font-weight: 600;
}
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.note {
  background: var(--soft); border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0;
  background: linear-gradient(180deg, #fffaf4, #fff);
}
.price strong { font-family: var(--serif); font-size: 1.35rem; color: var(--accent-dark); white-space: nowrap; }
.price span { color: var(--muted); }

.offers { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.offer { border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.offer h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.offer .tag {
  display: inline-block; font-size: .85rem; background: var(--soft); color: var(--accent-dark);
  border-radius: 6px; padding: .1rem .55rem; margin-bottom: .6rem;
}
.offer .price { margin: .8rem 0 0; padding: .7rem 1rem; }
.offer .price strong { font-size: 1.15rem; }

ul.list { padding-left: 1.2rem; margin: 0 0 1.2rem; }
ul.list li { margin: .3rem 0; }
ul.list li::marker { color: var(--gold); }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--soft); color: var(--accent-dark); }

/* Motto na konci stránky */
.motto {
  margin: 2.8rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 1.2rem;
}
.motto img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.motto blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: #5a4436;
}

/* ---------- Úvodní strana ---------- */
.hero { text-align: left; }
.hero h1 { font-size: 2.4rem; }
.hero .pull {
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: #3a281e; margin: 0 0 1.5rem;
}
.pillars { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.pillars li { padding-left: 1.8rem; position: relative; }
.pillars li::before {
  content: ""; position: absolute; left: .2rem; top: .62em; width: .7rem; height: .7rem;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd38a, var(--accent));
}
.tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem; margin: 1.5rem 0 0;
}
.tile {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(120, 60, 20, .5); color: var(--ink); }
.tile strong { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--accent-dark); margin-bottom: .25rem; }
.tile span { font-size: .93rem; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- Bachovy esence ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }

.essence-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.essence-grid a {
  display: block; text-decoration: none; color: var(--ink); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; transition: transform .15s, box-shadow .15s;
}
.essence-grid a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(120, 60, 20, .55); }
.essence-grid img { width: 100%; aspect-ratio: 330 / 445; object-fit: cover; }
.essence-grid span { display: block; padding: .5rem .6rem .6rem; font-size: .88rem; line-height: 1.35; }
.essence-grid b { color: var(--accent); font-weight: 600; margin-right: .2rem; }

.essence {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start;
}
.essence figure { margin: 0; position: sticky; top: 1.5rem; }
.essence figure img { border-radius: 10px; border: 1px solid var(--line); }
.essence .latin { font-style: italic; color: var(--muted); margin: -.6rem 0 1.2rem; }
.essence h2 { font-size: 1.25rem; margin-top: 1.8rem; }

.pager {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem;
}
.pager a { text-decoration: none; }
.pager .next { margin-left: auto; text-align: right; }

/* ---------- Otázky a články ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 10px; margin: .7rem 0; background: #fff;
}
.faq summary {
  cursor: pointer; padding: .9rem 2.6rem .9rem 1.1rem; list-style: none; position: relative;
  font-weight: 600; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: .75rem;
  font-size: 1.3rem; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 1rem 1.1rem .3rem; }

.article { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article:first-of-type { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
.article h2 { margin-top: 0; }
.article .meta { font-size: .92rem; color: var(--muted); margin: -.3rem 0 1rem; }
.article h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; color: #3a281e; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; align-items: start; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 600; }
.contact figure { margin: 0; }
.contact figure img { border-radius: 12px; }
.contact figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); background: #f3ebe1; color: var(--muted); font-size: .92rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  padding-top: 1.6rem; padding-bottom: 1.6rem;
}
.site-footer a { color: var(--ink); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .site-header .wrap { padding-top: 1rem; padding-bottom: 1rem; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.45rem; }
  .brand-sub { font-size: .8rem; }
  .menu-btn { display: inline-block; }

  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .side { display: none; margin: 0 -1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
  .side nav { position: static; padding: 1rem 1.25rem .3rem; }
  .nav-toggle:checked ~ .layout .side { display: block; }
  .nav-toggle:focus-visible + .site-header .menu-btn { outline: 2px solid #fff; outline-offset: 2px; }

  main { padding-top: 1.25rem; }
  .card { padding: 1.6rem 1.25rem; border-radius: 12px; }
  h1, .hero h1 { font-size: 1.75rem; }
  .hero .pull { font-size: 1.22rem; }

  .essence { grid-template-columns: 1fr; }
  .essence figure { position: static; max-width: 220px; }
  .contact { grid-template-columns: 1fr; }
  .contact figure { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
