/* Karel Komínek — osobní web
   Design: editorial/print, teplý papír. Hodnoty přeneseny 1:1 z design handoffu. */

html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: #F4F2EE;
  color: #1C1814;
  overflow-x: clip;
}
* { box-sizing: border-box; }
img { max-width: 100%; }

a { color: #1C1814; text-decoration: none; }
a:hover { color: #6B6257; }

@keyframes kk-scroll { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes kk-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes kk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.muted { color: #9B948A; }

h1, h2, h3 { text-wrap: pretty; }

/* Label sekce */
.label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #6B6257;
  display: inline-block;
  border-bottom: 1px solid #CFC9BF;
  padding-bottom: 8px;
  margin: 0 0 28px 0;
}
.label--center { display: block; border-bottom: none; text-align: center; padding-bottom: 0; margin: 0 0 56px 0; }

/* Odkaz „více informací →" */
.more { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #1C1814; }
.more__arrow { font-size: 14px; }

/* Invertovaná slova */
.kk-word {
  padding: 2px 5px;
  margin: -2px 0;
  border-radius: 2px;
  transition: background-color 0.45s, color 0.45s;
}

/* ============ Header ============ */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 8px 8px 8px; }
.site-header__brand { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 500; letter-spacing: 0.01em; margin: 0; }

/* ============ 1. Hero ============ */
.hero {
  background: #EBE8E2;
  display: grid;
  grid-template-columns: 6.4fr 5.6fr;
  position: relative;
  margin-top: 32px;
}
.hero__copy { padding: 88px 24px 72px 72px; display: flex; flex-direction: column; justify-content: center; }
.hero__headline {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 28px 0;
  text-wrap: pretty;
}
.hero__sub { font-size: 17px; line-height: 1.6; color: #55504A; max-width: 42ch; margin: 0 0 64px 0; text-wrap: pretty; }
.hero__counters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; max-width: 560px; margin: 0; }
.hero__num { font-family: 'Newsreader', serif; font-size: 34px; font-weight: 500; }
.hero__num--nowrap { white-space: nowrap; }
.hero__num-label { font-size: 14px; color: #6B6257; margin-top: 4px; }
.hero__photo { position: relative; min-height: 620px; }
.hero__photo img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: calc(100% + 64px);
  max-width: none;
  object-fit: cover;
  object-position: top center;
  mix-blend-mode: multiply;
}

/* ============ 2. Marquee log médií ============ */
.mediaband {
  padding: 44px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.mediaband__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: kk-marquee 90s linear infinite;
  padding-right: 72px;
}
.mediaband__track img { height: 18px; width: auto; display: block; filter: grayscale(1); opacity: 0.8; flex: none; }
.mediaband__track img.mediaband__tall { height: 26px; }

/* ============ 3. Přístup ============ */
.line-wrap { position: relative; isolation: isolate; }
.approach {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 96px;
  padding: 96px 8px 230px 8px;
}
.approach h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.approach__wave { position: absolute; left: 8px; right: 8px; height: 300px; overflow: hidden; pointer-events: none; }
.approach__cols { display: flex; flex-direction: column; }
.approach__row { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 8px 0; }
.approach__row--first { border-top: 1px solid #DDD6CA; padding: 32px 0 8px 0; }
.approach__row--last { padding: 8px 0 32px 0; }
.approach__no { font-family: 'Newsreader', serif; font-size: 24px; color: #9B948A; }
.approach__row p { font-size: 16px; line-height: 1.7; color: #37332E; margin: 0; text-wrap: pretty; }

/* ============ 4. 4 principy (pinned) ============ */
.principles { height: 320vh; margin-bottom: 0; }
.principles__sticky { position: sticky; top: 0; padding: 32px 8px; }
.principles__sticky .label { display: block; align-self: flex-start; margin-bottom: 56px; }
.principles__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; }
.principle { transition: opacity 0.45s; }
.principle__no { font-family: 'Newsreader', serif; font-size: 20px; color: #9B948A; margin-bottom: 16px; }
.principle h3 { font-family: 'Newsreader', serif; font-weight: 400; font-size: 26px; line-height: 1.2; margin: 0 0 16px 0; }
.principle p { font-size: 15px; line-height: 1.65; color: #55504A; margin: 0; text-wrap: pretty; }
.principles__track { position: relative; height: 2px; background: #DDD6CA; margin: 48px 0 0 0; }
.principles__fill { position: absolute; left: 0; top: -0.5px; bottom: -0.5px; width: 0%; background: #1C1814; }
.principles__dot {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-4px, -50%);
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #CFC9BF;
}
.principles__dot--start { transform: translate(-1px, -50%); }
.principles__arrow { position: absolute; right: -1px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: #CFC9BF; background: transparent; }

/* ============ 5. Arény ============ */
.arenas { padding: 32px 8px 128px 8px; }
.arenas h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 72px 0;
}
.arenas__list { display: flex; flex-direction: column; }
.arena {
  opacity: 0;
  transform: translateX(-56px);
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 64px;
  border-top: 1px solid #DDD6CA;
  padding: 48px 0;
}
.arena[data-kk-arena="0"] { transition: opacity 0.7s ease 0s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0s; }
.arena[data-kk-arena="1"] { transition: opacity 0.7s ease 0.18s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s; }
.arena[data-kk-arena="2"] { transition: opacity 0.7s ease 0.36s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.36s; }
.arena--last { border-bottom: 1px solid #DDD6CA; }
.arena.is-visible { opacity: 1; transform: translateX(0); }
.arena__label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: #1C1814; }
.arena__lead { font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.4; color: #1C1814; margin: 0 0 20px 0; text-wrap: pretty; }
.arena__body { font-size: 15px; line-height: 1.7; color: #55504A; margin: 0; text-wrap: pretty; }
.arena .more { margin-top: 20px; }

.otisk { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: center; margin-top: 48px; padding: 48px 0 0 0; }
.otisk__title { font-family: 'Newsreader', serif; font-weight: 400; font-size: 32px; line-height: 1.25; color: #1C1814; text-wrap: pretty; }
.otisk__mask {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.otisk__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: kk-marquee 90s linear infinite;
  animation-play-state: paused;
  padding-right: 56px;
}
.otisk__track img { height: 26px; width: auto; display: block; opacity: 0.8; flex: none; }
.otisk__track img.otisk__tall { height: 34px; }

/* ============ 6. Školení ============ */
.training { padding: 32px 8px 128px 8px; }
.training__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.training__photo { line-height: 0; }
.training__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 20%; display: block; }
.training h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
  max-width: 24ch;
}
.training__body { font-size: 16px; line-height: 1.65; color: #55504A; max-width: 60ch; margin: 0; text-wrap: pretty; }

/* ============ 7. Publikace (sticky) + EduMonitor (overlay) ============ */
.pub-wrap { position: relative; }
.publications { position: sticky; top: 0; padding: 32px 8px 128px 8px; }
.publications h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 64px 0;
  max-width: 24ch;
}
.publications__list { display: flex; flex-direction: column; }
.pub {
  display: grid;
  grid-template-columns: 6fr 4fr 2fr;
  gap: 32px;
  align-items: baseline;
  border-top: 1px solid #DDD6CA;
  padding: 24px 0;
}
.pub--last { border-bottom: 1px solid #DDD6CA; }
.pub__title { font-family: 'Newsreader', serif; font-size: 24px; line-height: 1.3; }
.pub__meta { font-size: 14px; color: #6B6257; }
.pub__link { font-size: 14px; justify-self: end; white-space: nowrap; }

.edumonitor {
  position: relative;
  z-index: 2;
  background: #EBE8E2;
  margin: 0 calc(50% - 50vw);
  padding: 200px calc(50vw - 50% + 8px);
  box-shadow: 0 -24px 48px rgba(28, 24, 20, 0.1);
}
.edumonitor__grid { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
.edumonitor h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
}
.edumonitor__lead { font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.4; color: #1C1814; margin: 0 0 20px 0; text-wrap: pretty; }
.edumonitor__body { font-size: 15px; line-height: 1.7; color: #55504A; margin: 0 0 32px 0; text-wrap: pretty; }

.edu-panel {
  background: #FDFBF7;
  border: 1px solid #E2DACC;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(28, 24, 20, 0.06);
}
.edu-panel__title { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 500; color: #1C1814; margin: 0 0 4px 0; }
.edu-panel__sub { font-size: 13px; color: #9B948A; margin: 0 0 24px 0; }
.edu-panel__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edu-card { background: #F7F2E9; border: 1px solid #E2DACC; border-radius: 8px; padding: 20px; }
.edu-card__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: #6B6257; margin-bottom: 12px; }
.edu-card__value { font-size: 30px; font-weight: 500; color: #1C1814; margin-bottom: 14px; }
.edu-card__value--flat { margin-bottom: 0; }
.edu-card__value--bronze { color: #A0703C; margin-bottom: 0; }
.edu-card__value-sub { font-size: 18px; color: #9B948A; }
.edu-card__row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.edu-card__note { font-size: 12px; color: #6B6257; }
.edu-spark { width: 56px; height: 24px; }
.edu-progress { height: 5px; border-radius: 999px; background: #E8E1D3; overflow: hidden; margin-bottom: 8px; }
.edu-progress__fill { width: 89%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #C89142, #D3A55E); }
.edu-badge {
  display: inline-block;
  font-size: 12px;
  color: #55504A;
  background: #EFEAE0;
  border: 1px solid #D8D2C6;
  border-radius: 4px;
  padding: 4px 10px;
}
.edu-badge--gold { color: #8A6430; background: #F3E7D2; border-color: #E0CBA4; }

/* ============ 8. Média ============ */
.media { padding: 32px 8px 128px 8px; }
.media h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
  max-width: 34ch;
}
.media__sub { font-size: 16px; line-height: 1.65; color: #55504A; margin: 0 0 64px 0; text-wrap: pretty; }
.media__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #EAE5DB;
  border-left: 1px solid #EAE5DB;
}
.media__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  border-right: 1px solid #EAE5DB;
  border-bottom: 1px solid #EAE5DB;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.media__cell:hover { opacity: 1; }
.media__cell img { max-height: 32px; max-width: 60%; display: block; filter: grayscale(1); }
.media__cell img.media__cell-tall { max-height: 40px; }

.vystupy { margin-top: 48px; }
.vystupy__list { margin-top: 24px; border-top: 1px solid #DDD6CA; }
.vystup {
  display: grid;
  grid-template-columns: 100px 150px 1fr auto;
  gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid #EAE5DB;
  padding: 14px 0;
}
.vystup__date { font-size: 13px; color: #9B948A; white-space: nowrap; }
.vystup__medium { font-size: 13px; color: #6B6257; }
.vystup__title { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.35; text-wrap: pretty; }
.vystup__link { font-size: 13px; white-space: nowrap; }

/* ============ 9. O mně + Ocenění ============ */
.about { padding: 32px 8px 128px 8px; }
.about > .label { margin-bottom: 48px; }
.about__grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.about__photo { background: #EBE8E2; line-height: 0; }
.about__photo img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.about__text { font-family: 'Newsreader', serif; font-size: 24px; line-height: 1.55; color: #1C1814; margin: 0; text-wrap: pretty; }
.awards { margin-top: 96px; }
.awards__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.award { display: flex; flex-direction: column; align-items: center; gap: 24px; flex: 1 1 0; min-width: 0; }
.award__img { height: clamp(90px, 12vw, 140px); width: auto; max-width: 100%; display: block; }
.award__img--mono { filter: grayscale(1) brightness(1.08); mix-blend-mode: multiply; }
.award__title { font-family: 'Newsreader', serif; font-size: 16px; color: #9B948A; }
.award__detail { font-size: 13px; color: #9B948A; margin-top: -16px; }

/* ============ 10. Souvislosti (claim) ============ */
.claim { padding: 32px 8px 140px 8px; }
.claim__line {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
  white-space: nowrap;
}
.claim__slot {
  display: inline-block;
  color: #9B948A;
  padding: 2px 10px;
  margin: -2px -4px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(-75vh);
  transition: transform 1s cubic-bezier(0.25, 0.6, 0.25, 1), opacity 0.5s, background-color 0.8s ease, color 0.8s ease;
}
.claim__slot--final { background: #1C1814; color: #F4F2EE; }
.claim__sub { font-size: 16px; line-height: 1.65; color: #55504A; margin: 0; text-wrap: pretty; }

/* ============ 11. Kontakt ============ */
.contact {
  background: #EBE8E2;
  margin: 0 calc(50% - 50vw);
  padding: 96px calc(50vw - 50% + 0px) 104px;
}
.contact__inner { max-width: 1200px; margin: 0 auto; }
.contact .label { margin-bottom: 40px; }
.contact__links { display: flex; flex-direction: column; gap: 8px; margin: 0 0 48px 0; }
.contact__mail { font-family: 'Newsreader', serif; font-size: 52px; line-height: 1.2; letter-spacing: -0.01em; color: #1C1814; }
.contact__mail:hover { color: #55504A; }
.contact__tel { font-family: 'Newsreader', serif; font-size: 32px; line-height: 1.3; color: #55504A; }
.contact__tel:hover { color: #1C1814; }

/* ============ FAQ (decentní accordion, za kontaktem) ============ */
.faq { padding: 72px 8px 16px 8px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 72ch; margin: 0; }
.faq__item summary {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1C1814;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "→"; font-size: 12px; color: #9B948A; }
.faq__item[open] summary::after { content: "↑"; }
.faq__item summary:hover { color: #6B6257; }
.faq__item p { font-size: 14px; line-height: 1.65; color: #6B6257; margin: 6px 0 0 0; text-wrap: pretty; }

/* ============ 12. Footer ============ */
.footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 8px 48px 8px;
}
.footer__id { font-size: 14px; color: #55504A; }
.footer__name { font-family: 'Newsreader', serif; font-size: 16px; font-weight: 500; color: #1C1814; }
.footer__projects, .footer__copy { font-size: 14px; color: #6B6257; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero__headline { font-size: 52px; }
  .approach h2, .arenas h2, .training h2, .publications h2, .edumonitor h2, .media h2 { font-size: 40px; }
  .principles__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .site-header { padding: 24px 0 8px 0; }
  .hero { grid-template-columns: 1fr; margin-top: 24px; }
  .hero__copy { padding: 56px 28px 48px 28px; }
  .hero__headline { font-size: 40px; }
  .hero__sub { margin-bottom: 40px; }
  .hero__photo { min-height: 0; aspect-ratio: 4 / 5; order: -1; }
  .hero__photo img { height: 100%; }
  .approach { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 200px 0; }
  .approach__wave { left: 0; right: 0; }
  .principles { height: auto; }
  .principles__sticky { position: static; padding: 32px 0; }
  .principles__grid { grid-template-columns: 1fr; gap: 32px; }
  .principle { opacity: 1 !important; }
  .principles__track { display: none; }
  .arenas, .training, .media, .about, .claim { padding-left: 0; padding-right: 0; padding-bottom: 88px; }
  .faq { padding-left: 0; padding-right: 0; }
  .publications { position: static; padding: 32px 0 88px 0; }
  .arena, .otisk, .training__grid, .about__grid, .edumonitor__grid { grid-template-columns: 1fr; gap: 32px; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
  .pub__link { justify-self: start; }
  .edumonitor { padding-top: 96px; padding-bottom: 96px; padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
  .media__grid { grid-template-columns: repeat(3, 1fr); }
  .vystup { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .awards__row { flex-wrap: wrap; justify-content: center; }
  .award { flex: 0 1 40%; }
  .claim__line { white-space: normal; }
  .contact__mail { font-size: clamp(24px, 7.5vw, 52px); }
  .footer { padding: 32px 0 40px 0; }
}

/* ============ Omezený pohyb ============ */
@media (prefers-reduced-motion: reduce) {
  .mediaband__track, .otisk__track { animation: none; }
  .arena { opacity: 1; transform: none; transition: none; }
  .claim__slot { opacity: 1; transform: none; transition: none; }
  .kk-word, .principle { transition: none; }
}
