/* Písma: Source Serif 4 (nadpisy) a Source Sans 3 (text), servírovaná z /fonts (bez Google Fonts). */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #fafaf7;
  --ink: #1f2a24;
  --text: #3e4a43;
  --muted: #55625a;
  --accent: #3d5a47;
  --accent-ink: #2f4a3a;
  --tint: #eef2ec;
  --line: #d5ded3;
  --on-accent: #e8f0e9;
  --waiting: #b07d3a;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3vw, 36px); }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }
img { display: block; max-width: 100%; }

a { color: var(--accent-ink); text-underline-offset: 0.2em; }
a:hover { color: #1f3328; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Hlavička */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 22px; padding-bottom: 22px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.brand span { font-size: 14px; color: var(--muted); }
.menu { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.menu a { text-decoration: none; color: var(--ink); }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Oznámení o volných místech */
.notice { display: flex; align-items: flex-start; gap: 10px; max-width: 480px; color: var(--accent-ink); font-size: 16px; font-weight: 500; line-height: 1.45; }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--waiting); }

/* Úvod hlavní stránky: text vlevo, fotka až k okraji */
.hero { display: flex; flex-wrap: wrap; background: var(--tint); }
.hero-text {
  flex: 1 1 520px; min-width: 0;
  padding: 72px 56px 72px max(24px, calc((100% - 1120px) / 2 + 24px));
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.hero-text .lead { font-size: 20px; color: var(--text); max-width: 520px; }
.hero-photo { flex: 1 1 520px; min-width: 0; width: 100%; height: auto; min-height: 560px; object-fit: cover; object-position: 50% 30%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 8px; font-weight: 600; font-size: 17px; }
.button { text-decoration: none; color: #fff; background: var(--accent); padding: 14px 28px; border-radius: 999px; }
.button:hover { color: #fff; background: var(--accent-ink); }

/* Sekce s nadpisem vlevo a obsahem vpravo */
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-top: 96px; }
.split > h2 { flex: 1 1 300px; }
.split > div { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split > div > p { color: var(--text); max-width: 640px; }
.topics { margin: 0; padding: 0 0 0 20px; columns: 2 220px; column-gap: 40px; color: #2f3d35; font-size: 19px; line-height: 1.9; }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 96px; }
.groups > div { border-top: 2px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.groups p { color: var(--text); font-size: 17px; }

/* Fotka hor vedle citátu */
.about { background: var(--tint); border-radius: 24px; overflow: hidden; display: flex; flex-wrap: wrap; }
.about img { flex: 1 1 420px; min-width: 0; width: 100%; height: 440px; object-fit: cover; }
.about > div { flex: 1 1 420px; min-width: 0; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.about .quote { font-family: var(--serif); font-size: 28px; line-height: 1.35; }
.about p { color: var(--text); font-size: 17px; }
.about a { font-weight: 600; }

/* Odkazy na podstránky */
.links { padding-top: 96px; padding-bottom: 96px; }
.links h2 { margin-bottom: 32px; }
.links a { text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); padding: 24px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 40px; }
.links a:last-child { border-bottom: 1px solid var(--line); }
.links a span:first-child { flex: 1 1 320px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.links a span:last-child { flex: 2 1 420px; color: var(--text); font-size: 17px; }
.links a:hover span:first-child { text-decoration: underline; text-decoration-color: var(--accent); }

/* Podstránky */
.page-head { background: var(--tint); }
.page-head .wrap { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.prose { max-width: 720px; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; color: var(--text); }
.prose h2 { color: var(--ink); margin-top: 28px; }
.prose-wide { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 64px; padding-bottom: 96px; }
.prose-wide .prose { flex: 2 1 480px; padding: 0; }
.prose-wide img { flex: 1 1 300px; min-width: 0; height: 480px; object-fit: cover; object-position: 50% 30%; border-radius: 24px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; background: var(--tint); border-radius: 16px; padding: 24px 28px; color: var(--ink); }
.price strong { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.contact-email { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); overflow-wrap: break-word; }

/* Kontakt na konci každé stránky */
.contact { background: var(--accent); color: #fff; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 88px; padding-bottom: 88px; }
.contact .wrap > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact h2 { font-size: 40px; }
.contact p { color: var(--on-accent); font-size: 19px; }
.contact .email { color: #fff; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; overflow-wrap: break-word; }
.contact .email:hover { color: var(--on-accent); }

.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 15px; color: var(--muted); }

@media (max-width: 600px) {
  .hero-text { padding-top: 48px; padding-bottom: 48px; }
  .hero-photo { height: 420px; min-height: 0; }
  .about img { height: 280px; }
  .split, .links { padding-top: 64px; }
  .groups, .links { padding-bottom: 64px; }
}
