/* Vizuální styl převzatý z marter.cz: Montserrat, petrolejová, růžová, béžová */
:root {
  --ink: #333333;
  --ink-soft: #55595c;
  --white: #ffffff;
  --teal: #0892a5;        /* nadpisy, akcenty (marter.cz) */
  --teal-dark: #077b8b;   /* tlačítka – tmavší kvůli kontrastu bílého textu */
  --teal-2: #17a9a7;
  --pink: #fd598b;        /* hlavní lišta (marter.cz) */
  --pink-dark: #aa1e5b;   /* horní lišta (marter.cz) */
  --pink-link: #e62979;
  --rose: #f8dcdb;
  --beige: #ece9e7;       /* #E5E1DE / 77 % na bílé */
  --beige-2: #f5f3f1;
  --slate: #5e7180;
  --navy: #284473;
  --radius: 28px;
  --max: 1120px;
  --font: "Montserrat", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-dark); }
a:hover { color: var(--pink-link); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .55em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--teal); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; color: var(--ink); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
li::marker { color: var(--teal); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.section { padding: 56px 0; }
.section--tint { background: var(--beige-2); }
.section--ink { background: var(--teal-dark); color: var(--white); position: relative; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink li::marker { color: var(--rose); }
.section--ink a { color: var(--white); }
.section--yellow { background: var(--rose); }
.section--yellow h2 { color: var(--pink-dark); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--rose); }
.lead { font-size: 1.2rem; line-height: 1.5; font-weight: 700; color: var(--ink); }
.muted { color: var(--ink-soft); }
.section--ink .muted { color: #e7f5f9; }

/* vlna pod petrolejovou sekcí – jako na marter.cz */
.wave { display: block; width: 100%; height: 48px; margin-top: -1px; }
.wave path { fill: var(--teal-dark); }

/* pracovní pruh */
.draft {
  background: var(--navy);
  color: var(--white);
  font-size: .85rem;
  text-align: center;
  padding: 7px 16px;
}

/* hlavička: horní tmavě růžová lišta s navigací, růžová lišta s logem */
.site-header { position: sticky; top: 0; z-index: 10; }
.topbar { background: var(--pink-dark); }
.topbar .wrap { display: flex; justify-content: flex-end; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 22px; padding: 6px 0; }
.nav a {
  color: var(--white); text-decoration: none; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--rose); }
.brandbar { background: var(--pink); }
.brandbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.brand-project { color: var(--white); font-weight: 700; font-size: .95rem; text-align: right; }

/* tlačítka – pilulky jako na marter.cz */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; text-decoration: none; font-family: inherit;
  border: 2px solid var(--teal-dark); background: var(--teal-dark); color: var(--white);
  cursor: pointer;
}
.btn:hover { background: #066a78; border-color: #066a78; color: var(--white); }
.btn--yellow { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn--yellow:hover { background: #8f184c; border-color: #8f184c; }
.btn--ghost { background: transparent; color: var(--teal-dark); }
.btn--ghost:hover { background: #e7f5f9; color: var(--teal-dark); }
.btn--slate { background: var(--slate); border-color: var(--slate); }
.section--ink .btn--ghost { color: var(--white); border-color: var(--white); }
.section--ink .btn--ghost:hover { background: rgba(255,255,255,.12); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--teal-dark); border-bottom: 2px solid var(--pink); }
.link-arrow:hover { color: var(--pink-dark); }

/* úvod – béžová plocha s petrolejovým nadpisem */
.hero { padding: 64px 0 56px; background: var(--beige); }
.hero .lead { max-width: 720px; }
.hero p { max-width: 700px; }

/* mřížky a karty */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card {
  background: var(--beige-2); border-radius: var(--radius) var(--radius) 0 0;
  padding: 30px; display: flex; flex-direction: column; gap: 10px;
}
.section--tint .card { background: var(--white); }
.card p { margin: 0; }
.card .btn, .card .link-arrow { margin-top: auto; align-self: flex-start; }
.card .link-arrow { margin-top: 14px; }
.card--dark { background: var(--teal-dark); color: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.card--dark h3 { color: var(--white); }

.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink); color: var(--white); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 14px;
}
.steps--five .step:last-child { grid-column: 1 / -1; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); margin: 8px 0 12px; }
.stat { background: var(--white); border-radius: 18px; padding: 18px 20px; }
.stat dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-dark); }
.stat dd { margin: 4px 0 0; font-weight: 800; font-size: 1.15rem; color: var(--teal-dark); }

.callout { background: var(--rose); border-radius: 18px; padding: 22px 26px; margin: 0 0 24px; }
.callout strong { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-dark); margin-bottom: 6px; }

.split { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; }

/* časová osa */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--pink); }
.timeline li { padding: 0 0 26px 26px; position: relative; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); }
.timeline strong { display: block; font-weight: 800; color: var(--teal-dark); font-size: 1.05rem; }

/* pro koho */
.audience { display: grid; border-top: 1px solid #ddd8d4; }
.audience-row { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); padding: 22px 0; border-bottom: 1px solid #ddd8d4; align-items: center; }
.audience-row h3 { margin: 0; color: var(--teal-dark); }
.audience-row p { margin: 0; }

/* časté otázky */
.faq details { border-bottom: 1px solid #ddd8d4; }
.faq details:first-child { border-top: 1px solid #ddd8d4; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-dark); color: var(--white); display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--pink-dark); }
.faq details p { padding-bottom: 20px; margin: 0; max-width: 720px; }

/* formulář */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 600; }
.form input[type="email"] {
  width: 100%; min-height: 50px; padding: 0 18px; border-radius: 50px; border: 2px solid var(--white);
  font: inherit; background: var(--white); color: var(--ink);
}
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.checks label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; min-height: 32px; }
.checks input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--pink-dark); }
.form-note { font-size: .88rem; }
.form-msg { font-weight: 700; }

/* loga poskytovatele */
.logos { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.logo-ph { border: 2px dashed #a9a29b; border-radius: 14px; padding: 18px 26px; font-weight: 700; color: var(--ink-soft); background: var(--white); }

.team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-top: 20px; }
.team-ph { border: 2px dashed #a9a29b; border-radius: var(--radius); padding: 22px; color: var(--ink-soft); background: var(--white); }
.team-ph .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--rose); margin-bottom: 12px; }

/* patička */
.site-footer { background: var(--navy); color: var(--white); padding: 56px 0 36px; font-size: .92rem; }
.site-footer .split { gap: 32px; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer h2 { font-size: 1.1rem; color: var(--white); }
.footer-logo { height: 26px; width: auto; margin-bottom: 18px; }
.footer-small { margin-top: 28px; color: #c9d2e3; font-size: .82rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--rose); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 3px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0 36px; }
  .site-header { position: static; }
  .nav { justify-content: flex-start; }
  .topbar .wrap { justify-content: flex-start; }
  .brand-project { display: none; }
  .btn { width: 100%; }
}

/* úvod s ilustrací (podstránka výzkumu) */
.hero-split { display: grid; gap: 40px 56px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: center; }
.hero-figure { margin: 0; }
.hero-illustration { width: 100%; height: auto; display: block; }
.project-badge { background: var(--white); border-radius: 22px; padding: 20px 24px; margin-bottom: 32px; font-size: .93rem; line-height: 1.55; }
.project-badge .eyebrow { margin-bottom: 8px; }
.project-badge p { margin: 0 0 10px; }
.h-teal { color: var(--teal); font-size: clamp(2rem, 4.2vw, 3rem); }

/* rozbalovací sekce výzkumu */
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.facts li { background: var(--beige-2); border-radius: 16px; padding: 14px 18px; margin: 0; }
.facts strong { color: var(--teal-dark); }
.more { margin-top: 40px; }
.research { padding-bottom: 0; }
.more > summary { cursor: pointer; list-style: none; display: block; background: var(--teal-dark); color: var(--white); }
.more > summary .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-top: 14px; padding-bottom: 14px; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary .wrap::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--teal-dark); font-size: 1.3rem; line-height: 1; }
.more[open] > summary .wrap::after { content: "–"; }
.more > summary:hover { background: #066a78; }
.more-body { padding: 36px 0 56px; }

.more-body h3 { color: var(--teal-dark); font-size: 1.35rem; margin-top: 36px; }
.more-body .timeline { margin-top: 12px; }
.ask { margin-top: 48px; background: var(--rose); border-radius: var(--radius); padding: 28px 30px; }
.ask h3 { margin-top: 0; color: var(--pink-dark); }

/* mapa projektu – časová osa */
.roadmap-section { background: var(--white); }
.roadmap { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.roadmap::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 27px; height: 4px; background: var(--beige); border-radius: 2px; }
.roadmap-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 6px; margin: 0; }
.roadmap-dot {
  position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
  background: var(--white); color: var(--teal-dark); border: 4px solid var(--teal);
}
.roadmap-label { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--ink); min-height: 2.6em; }
.roadmap-step.is-now .roadmap-dot { background: var(--pink); border-color: var(--pink); color: var(--white); box-shadow: 0 0 0 8px var(--rose); }
.roadmap-step.is-now .roadmap-label { color: var(--pink-dark); }
.roadmap-now { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--pink-dark); border-radius: 50px; padding: 3px 10px; }

@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; gap: 18px; }
  .roadmap::before { left: 27px; right: auto; top: 29px; bottom: 29px; width: 4px; height: auto; }
  .roadmap-step { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 18px; row-gap: 8px; align-items: center; justify-items: start; text-align: left; padding: 0; }
  .roadmap-dot { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .roadmap-label, .roadmap-now, .roadmap-out { grid-column: 2; }
  .roadmap-label { min-height: 0; align-self: center; margin-top: 17px; }
}
.roadmap-out { position: relative; }
.roadmap-out > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border-radius: 50px; border: 2px solid var(--teal-dark);
  color: var(--teal-dark); font-weight: 700; font-size: .82rem; background: var(--white);
}
.roadmap-out > summary::-webkit-details-marker { display: none; }
.roadmap-out > summary::after { content: "▾"; font-size: .8rem; }
.roadmap-out[open] > summary { background: var(--teal-dark); color: var(--white); }
.roadmap-out[open] > summary::after { content: "▴"; }
.roadmap-out-panel {
  position: absolute; z-index: 5; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 260px; background: var(--white); border-radius: 18px; padding: 16px 18px; text-align: left;
  box-shadow: 0 10px 30px rgba(40, 68, 115, .18); font-size: .9rem;
}
.roadmap-out-panel p { margin: 0 0 6px; }
.roadmap-out-title { font-weight: 700; color: var(--teal-dark); }
@media (max-width: 860px) {

  .roadmap-out-panel { position: static; transform: none; margin-top: 8px; width: auto; max-width: 280px; }
}
.hero-photo { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(40, 68, 115, .16); }
.hero-split:has(.hero-photo) { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* pás „Právě probíhá“ */
.now-band { background: var(--pink-dark); color: var(--white); }
.now-band .wrap { display: flex; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.now-band strong { font-weight: 800; }
.now-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px rgba(253, 89, 139, .35); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .now-dot { animation: nowpulse 1.8s ease-in-out infinite; }
  @keyframes nowpulse { 50% { box-shadow: 0 0 0 9px rgba(253, 89, 139, 0); } }
}
