/*
  Styl pro kvaskovy_kurz_20260530.html.
  Kombinace puvodni teple kvaskove barevnosti a nove prehledne mobilni struktury.
  Ladeni je zamerne svetlejsi nez predchozi verze.
*/

:root {
  --page: #fffaf2;
  --paper: #ffffff;
  --text: #5a3218;
  --muted: #7a6044;

  --brown: #8b4513;
  --brown-dark: #5a3218;
  --brown-hover: #b85d16;

  --cream: #fffdf7;
  --cream-soft: #fff8ee;
  --cream-warm: #fdf0dd;
  --cream-line: #e7cfb3;
  --cream-line-soft: #f0ddc7;

  --notice: #fff0d6;
  --notice-line: #d99b55;

  --font-main: system-ui, -apple-system, "Segoe UI", "Trebuchet MS", Arial, sans-serif;

  --shadow: 0 2px 8px rgba(90, 50, 24, 0.055);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 18px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--brown);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus { color: var(--brown-hover); }

.page {
  width: min(100%, 860px);
  margin: 0 auto;
}

.header {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: start;
  gap: 14px;
  margin: 0 0 14px;
  padding: 6px 0 16px;
  text-align: center;
  border-bottom: 1px solid var(--cream-line);
}

.header-logo-link {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1px;
}

.header-logo {
  width: 70px;
  height: 70px;
  display: block;
}

.header-title { min-width: 0; }

h1 {
  margin: 0 0 7px;
  color: var(--brown);
  font-size: clamp(1.45rem, 4.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--text);
  font-weight: bold;
}

.short-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-image {
  width: 100%;
  margin: 0 auto 16px;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--cream-line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card {
  margin: 14px 0;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--cream-line-soft);
  border-left: 5px solid var(--cream-line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.card.intro {
  margin-top: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fff1dc, #ffffff 70%);
  border-color: #ddb98f;
  border-left: 8px solid var(--brown);
  box-shadow: 0 5px 16px rgba(90, 50, 24, 0.095);
}

.card.intro::before {
  content: "Pozvánka na praktický kurz";
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--notice);
  border: 1px solid var(--notice-line);
  color: var(--brown-dark);
  font-size: 0.82rem;
  font-weight: bold;
}

.card.intro p:first-child {
  margin-bottom: 11px;
  color: var(--brown-dark);
  font-size: 1.06rem;
  line-height: 1.55;
}

.card.soft,
.card.cta {
  background: var(--cream-soft);
  border-color: var(--cream-line);
  border-left-color: var(--brown);
}

.card.info-card {
  background: var(--cream);
  border-color: var(--cream-line);
  border-left-color: var(--brown);
}

.card h2 {
  margin: 0 0 8px;
  color: var(--brown);
  font-size: 1.16rem;
  line-height: 1.3;
}

.card p { margin: 0 0 9px; }
.card p:last-child { margin-bottom: 0; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.info-item {
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid var(--cream-line-soft);
  border-radius: 10px;
}

.info-item strong { color: var(--brown); }

.remaining-spot {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 9px;
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-radius: 999px;
  color: var(--brown-dark);
  font-weight: bold;
}

ul {
  margin: 8px 0 0 1.25rem;
  padding: 0;
}

li { margin: 4px 0; }

.image-single {
  width: min(100%, 520px);
  display: block;
  margin: 14px auto 4px;
  border-radius: 12px;
  border: 1px solid var(--cream-line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}

.image-pair img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--cream-line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.quote {
  margin: 10px 0;
  padding: 11px 13px;
  background: var(--cream-soft);
  border: 1px solid var(--cream-line-soft);
  border-radius: 11px;
  color: var(--text);
}

.quote em { color: var(--muted); }

.cta { text-align: center; }

.button {
  display: inline-block;
  margin: 8px 0 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.button:hover,
.button:focus {
  background: var(--brown-hover);
  color: #fff;
}

.footer {
  margin: 18px 0 0;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--cream-line);
}

.back-links {
  text-align: center;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* sjednocení typografie napříč webem */
h1,
h2,
h3,
.header-title p,
.subtitle,
.short-note,
.tag,
.button {
  font-family: var(--font-main);
}

@media only screen and (max-width: 640px) {
  body {
    padding: 8px;
    font-size: 15px;
  }

  .header {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 8px;
    padding-bottom: 12px;
  }

  .header-logo {
    width: 52px;
    height: 52px;
  }

  .subtitle { font-size: 0.95rem; }

  .card {
    padding: 13px;
    border-left-width: 4px;
  }

  .card.intro {
    padding: 15px;
    border-left-width: 6px;
  }

  .card.intro p:first-child {
    font-size: 1rem;
  }

  .info-grid { grid-template-columns: 1fr; }

  .image-pair { grid-template-columns: 1fr; }

  .image-pair img { height: auto; }
}
