/* Sdílený vzhled vychází z dodaného návrhu homepage a schválených ilustrací. */
:root {
  color-scheme: light;
  --paper: #fdf7ee;
  --paper-strong: #fdf9f2;
  --ink: #054559;
  --ink-deep: #003345;
  --line: #e5c399;
  --accent-soft: #c88758;
  --path-p: #6b92aa;
  --path-o: #658570;
  --path-k: #d0694a;
  --path-l: #9b84c1;
  --font-body: Georgia, "Times New Roman", serif;
  --content-width: 1320px;
  --radius-card: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 4px; }

.site-header {
  min-height: 76px;
  padding: 7px clamp(20px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 30px);
  background: var(--paper-strong);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand__logo { width: 74px; height: auto; flex: 0 0 auto; }
.brand__text { display: grid; }
.brand__text strong { font-size: clamp(20px, 2vw, 30px); font-weight: 500; line-height: 1.05; white-space: nowrap; }
.brand__text small { font-size: 15px; white-space: nowrap; }
.site-nav { min-width: 0; display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; justify-content: center; }
.site-nav__item { padding: 8px 0; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.header-search { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); }
.header-search:disabled { opacity: 1; cursor: default; }
.header-search svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-journey { min-width: 156px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 20px; border-radius: 999px; color: var(--paper-strong); background: var(--ink-deep); white-space: nowrap; }

.home-hero {
  min-height: 500px;
  padding: 24px clamp(16px, 2vw, 32px);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: url("/assets/hero-home-20261017.jpg") center 48% / cover no-repeat;
}
.home-hero__panel {
  width: min(34%, 500px);
  padding: clamp(18px, 1.6vw, 24px);
  border: 1px solid rgba(229, 195, 153, .7);
  border-radius: var(--radius-card);
  background: rgba(253, 249, 242, .96);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 2.8vw, 42px); line-height: 1.08; font-weight: 500; }
.hero-copy { font-size: 18px; }
.hero-copy p { margin-bottom: 6px; }
.hero-divider { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; color: var(--path-k); }
.hero-divider::before, .hero-divider::after { content: ""; height: 1px; flex: 1; background: var(--accent-soft); }
.hero-divider span { font: 18px/1 Arial, sans-serif; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
}
.button--main { width: 100%; color: #fffaf2; background: var(--ink-deep); font-size: 18px; }
.button--main:hover { background: var(--ink); }
.hero-doors { display: grid; gap: 0; margin-top: 10px; }
.hero-door { min-width: 0; display: grid; grid-template-columns: minmax(150px, 40%) minmax(0, 1fr); align-items: center; gap: 12px; border-top: 1px solid var(--accent-soft); padding: 8px 0; }
.hero-door__visual { height: 120px; overflow: hidden; border-radius: 8px; background: var(--paper-strong); }
.hero-door__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-door--key img { object-position: 58% 28%; transform: scale(1.22); transform-origin: 58% 28%; }
.hero-door--book img { object-position: center 58%; transform: scale(1.08); transform-origin: 50% 58%; }
.hero-door h2 { margin: 0 0 2px; font-size: 21px; font-weight: 600; line-height: 1.15; }
.hero-door p { margin: 0; font-size: 15px; line-height: 1.25; }

.section-wrap { width: min(calc(100% - 40px), var(--content-width)); margin-inline: auto; }
.paths { padding-block: 14px 44px; }
.section-title { margin: 0 auto 4px; text-align: center; font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.15; }
.section-intro { max-width: 880px; margin: 0 auto 18px; text-align: center; }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.path-card {
  position: relative;
  min-width: 0;
  padding: 9px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.path-card > img { width: 100%; aspect-ratio: 1.79 / 1; object-fit: cover; border-radius: 12px; background: var(--paper-strong); mix-blend-mode: multiply; filter: saturate(1.06) contrast(1.03); }
.path-card--o > img { filter: brightness(.96) saturate(1.08) contrast(1.04); }
.path-letter {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -28px 0 0 2px;
  border: 2px solid var(--paper-strong);
  border-radius: 50%;
  color: white;
  font-size: 29px;
}
.path-card--p .path-letter { background: var(--path-p); }
.path-card--o .path-letter { background: var(--path-o); }
.path-card--k .path-letter { background: var(--path-k); }
.path-card--l .path-letter { background: var(--path-l); }
.path-card h3 { margin: 4px 0 2px; font-size: 24px; font-weight: 600; }
.path-card p { margin: 0; line-height: 1.35; }

.world-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  background: linear-gradient(90deg, rgba(253,247,238,.94), rgba(253,247,238,.74)), url("/assets/hero-world.webp") center 54% / cover no-repeat;
}
.world-hero__copy { width: min(720px, 100%); }
.world-hero .eyebrow { margin-bottom: 8px; font-size: 20px; }
.world-hero h1 { max-width: 650px; margin-bottom: 18px; }
.world-hero__copy p:not(.eyebrow) { max-width: 700px; margin-bottom: 10px; }
.world-side { padding: 0 0 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.world-side__item { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(255,252,247,.75); }
.world-side__item img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; }
.world-side__item div { padding: 20px 24px 8px; }
.world-side__item h2 { font-size: 28px; font-weight: 500; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px clamp(24px, 4vw, 62px); border-top: 1px solid var(--line); background: var(--paper-strong); font-size: 15px; }
.footer-brand, .footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-legal { gap: 12px; font-size: 13px; }

@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; flex: 1 0 100%; gap: 22px; }
  .header-actions { margin-left: auto; }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-hero__panel { width: min(55%, 500px); }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .home-hero__panel { width: min(46%, 500px); }
}
@media (max-width: 680px) {
  body { font-size: 18px; }
  .site-header { align-items: center; gap: 8px 12px; padding: 9px 14px; }
  .brand { gap: 8px; }
  .brand__logo { width: 48px; }
  .brand__text strong { font-size: 20px; }
  .brand__text small { font-size: 13px; }
  .header-actions { gap: 8px; }
  .header-search { width: 38px; height: 42px; }
  .header-search svg { width: 24px; height: 24px; }
  .nav-journey { min-width: 110px; min-height: 40px; padding: 7px 12px; font-size: 15px; }
  .site-nav { width: 100%; flex: 1 0 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; justify-content: stretch; overflow: visible; padding-bottom: 2px; }
  .site-nav__item { min-height: 38px; display: flex; align-items: center; font-size: 15px; }
  .home-hero { min-height: auto; padding: clamp(190px, 52vw, 300px) 12px 12px; background-position: center top; background-size: 100% auto; background-color: var(--paper); }
  .home-hero__panel { width: 100%; padding: 20px 16px; }
  h1 { font-size: 34px; }
  .hero-door { grid-template-columns: minmax(126px, 40%) minmax(0, 1fr); gap: 12px; }
  .hero-door__visual { height: 104px; }
  .section-wrap { width: min(calc(100% - 24px), var(--content-width)); }
  .paths { padding-block: 28px 38px; }
  .section-title { font-size: 30px; }
  .section-intro { text-align: left; }
  .path-grid { grid-template-columns: 1fr; gap: 12px; }
  .path-card { padding: 9px 10px 14px; }
  .path-card > img { aspect-ratio: 1.79 / 1; }
  .world-hero { min-height: auto; padding: 38px 18px; background-position: center; }
  .world-hero h1 { font-size: 34px; }
  .world-side { grid-template-columns: 1fr; gap: 14px; padding-bottom: 36px; }
  .world-side__item div { padding: 18px 16px 6px; }
  .world-side__item h2 { font-size: 25px; }
  .site-footer { flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px; }
  .footer-brand, .footer-legal { justify-content: center; gap: 8px; }
}
