/* NEXTGEN · meet-nextgen.cz
   Barvy, písma a pravidla podle NEXTGEN_identita_v1 (tokeny ze sekce 13).
   Jeden světlý vzhled podle identity: pozadí Beige, text Navy. */
:root {
  --ng-open-blue: #1E7BF2;
  --ng-action-blue: #1A66D9;
  --ng-navy: #1D3142;
  --ng-beige: #ECE8E1;
  --ng-sky: #DCEBFF;
  --ng-coral: #FF6A4D;
  --ng-sun: #FFC845;
  --ng-white: #FFFFFF;
  --ng-grey: #4A5560;
  --ng-text-soft: #33404D;
  --ng-on-navy-soft: #C7CED6;
  --ng-placeholder: #C9D3DE;
  --ng-font-sans: 'Schibsted Grotesk', Arial, sans-serif;
  --ng-font-serif: 'Instrument Serif', Georgia, serif;
  --ng-radius: 4px;
  --ng-rule: 2px solid var(--ng-navy);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ng-beige);
  color: var(--ng-navy);
  font-family: var(--ng-font-sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ng-navy); }
a:hover { color: var(--ng-action-blue); }
:focus-visible { outline: 3px solid var(--ng-action-blue); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1312px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--ng-navy); color: var(--ng-beige); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; }

/* Typografie */
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ng-grey); }
.serif { font-family: var(--ng-font-serif); font-weight: 400; }
.h-display { margin: 0; font-weight: 800; font-size: clamp(54px, 10vw, 128px); line-height: 0.9; letter-spacing: -0.035em; }
.h-display .serif { font-style: italic; letter-spacing: -0.01em; font-size: 1.12em; }
.h-section { margin: 0; font-family: var(--ng-font-serif); font-weight: 400; font-size: clamp(42px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.01em; }
.h-plain { margin: 0; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ng-text-soft); max-width: 640px; }
.muted { font-size: 15px; color: var(--ng-grey); }

/* Tlačítka: Coral jen jedno na ploše, sekundární Navy, terciární obrys */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: var(--ng-radius); font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--ng-coral); color: var(--ng-navy); font-weight: 800; }
.btn-primary:hover { color: var(--ng-navy); background: #FF8066; }
.btn-secondary { background: var(--ng-navy); color: var(--ng-beige); }
.btn-secondary:hover { color: var(--ng-white); background: #2A4157; }
.btn-outline { border: var(--ng-rule); color: var(--ng-navy); background: transparent; padding: 12px 26px; }
.btn-outline:hover { background: var(--ng-white); color: var(--ng-navy); }
.btn-outline-light { border: 2px solid var(--ng-beige); color: var(--ng-beige); background: transparent; padding: 12px 26px; }
.btn-outline-light:hover { background: var(--ng-beige); color: var(--ng-navy); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; }
.tag-sun { background: var(--ng-sun); color: var(--ng-navy); }

/* Navigace */
.site-nav { border-bottom: var(--ng-rule); background: var(--ng-beige); }
.site-nav .wrap { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; }
.site-nav .logo { display: block; width: 150px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 600; font-size: 16px; }
.site-nav ul a { text-decoration: none; display: inline-block; padding: 10px 0; }
.site-nav ul a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .btn { min-height: 44px; padding: 10px 18px; font-size: 16px; }
@media (min-width: 720px) {
  .site-nav .logo { width: 180px; }
  .site-nav .wrap { min-height: 88px; }
  .site-nav ul { gap: 4px 32px; font-size: 17px; }
}
@media (max-width: 519px) {
  .site-nav .nav-cta { display: none; }
}

/* Chodba: přední rám, druhý rám bez levé strany, světlo. Vždy vpravo, soustředně. */
.corridor { position: relative; width: 100%; max-width: 420px; aspect-ratio: 420 / 470; }
.corridor .front { position: absolute; left: 0; top: 0; width: 78.6%; height: 100%; border: 14px solid var(--ng-navy); background: var(--ng-placeholder); z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; padding: 8px; }
.corridor .front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.corridor .mid { position: absolute; left: 75.3%; top: 8.9%; width: 23.6%; height: 82%; border: 14px solid var(--ng-open-blue); border-left: 0; }
.corridor .light { position: absolute; left: 98.8%; top: 21%; width: 12.6%; height: 58%; background: var(--ng-coral); }
@media (max-width: 719px) {
  .corridor { max-width: 300px; }
  .corridor .front, .corridor .mid { border-width: 9px; }
  .corridor .mid { border-left: 0; }
}

/* Sekce */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; margin-bottom: 40px; }
.section-head > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.section-head > p { flex: 2 1 480px; min-width: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; }
.rule-top { border-top: var(--ng-rule); }
.rule-bottom { border-bottom: var(--ng-rule); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 80px); }
.hero-copy { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; padding-right: 50px; }
.hero-labels { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hero-labels .accent { color: var(--ng-action-blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fakta */
.facts { background: var(--ng-white); border-bottom: var(--ng-rule); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { padding: 24px 16px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.facts li:nth-child(2n) { border-left: var(--ng-rule); padding-left: 16px; }
.facts li:nth-child(-n+2) { border-bottom: var(--ng-rule); }
.facts .num { font-family: var(--ng-font-serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.facts .txt { font-size: 15px; color: var(--ng-grey); line-height: 1.4; }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding: 32px 24px; border-bottom: 0 !important; }
  .facts li:first-child { padding-left: 0; }
  .facts li + li { border-left: var(--ng-rule); }
}

/* Pilíře */
.pillars { list-style: none; margin: 0; padding: 0; border-bottom: var(--ng-rule); }
.pillars li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 20px 0; border-top: var(--ng-rule); }
.pillars .no { font-weight: 700; color: var(--ng-action-blue); }
.pillars .en { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.pillars .desc { grid-column: 2; font-size: 17px; color: var(--ng-text-soft); }
.pillars .desc i { font-family: var(--ng-font-serif); font-size: 30px; color: var(--ng-navy); }
@media (min-width: 720px) {
  .pillars li { grid-template-columns: 64px 180px minmax(0, 1fr); padding: 24px 0; }
  .pillars .desc { grid-column: auto; font-size: 19px; }
  .pillars .en { font-size: 17px; }
}

/* Dveře */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.door { background: var(--ng-white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.door b { font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.door p { font-size: 17px; line-height: 1.55; }
.door-dark { background: var(--ng-navy); color: var(--ng-beige); }
.door-dark .label { color: var(--ng-sun); }

/* Navy pás (akce) */
.band-navy { background: var(--ng-navy); color: var(--ng-beige); }
.band-navy .label { color: var(--ng-sun); }
.band-navy .lead { color: var(--ng-on-navy-soft); }
.band-navy a { color: var(--ng-beige); }
.split { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.split > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.event-card { border: 2px solid var(--ng-beige); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.event-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; }
.event-card .title { font-family: var(--ng-font-serif); font-size: 38px; line-height: 1; }
.event-card .meta { font-size: 16px; color: var(--ng-on-navy-soft); }

/* Formulář */
.form-card { background: var(--ng-white); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.field input { font: inherit; font-weight: 400; font-size: 18px; padding: 12px 0; border: 0; border-bottom: var(--ng-rule); border-radius: 0; background: transparent; color: var(--ng-navy); width: 100%; }
.field input::placeholder { color: #6B7580; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ng-grey); }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ng-navy); }
.hp { position: absolute; left: -9999px; }

/* Lidé */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.person { border-top: var(--ng-rule); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.person .photo { aspect-ratio: 4 / 5; max-width: 100%; background: var(--ng-placeholder); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person b { font-size: 24px; line-height: 1.2; }
.person p { font-size: 16px; line-height: 1.55; color: var(--ng-text-soft); }
@media (max-width: 719px) {
  .people { grid-template-columns: 1fr; gap: 16px; }
  .person { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding-top: 16px; }
  .person .photo { grid-row: span 3; font-size: 11px; }
  .person b { font-size: 19px; }
  .person p { font-size: 15px; }
}

/* Sky blok */
.sky-box { background: var(--ng-sky); padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; }
.sky-box > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sky-box > .side { flex: 1 1 240px; display: flex; justify-content: flex-start; }
@media (min-width: 900px) { .sky-box > .side { justify-content: flex-end; } }
.quote { margin: 8px 0 0; padding-top: 16px; border-top: var(--ng-rule); font-family: var(--ng-font-serif); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3; }
.quote cite { display: block; margin-top: 8px; font-family: var(--ng-font-sans); font-style: normal; font-size: 15px; color: var(--ng-grey); }

/* Malá chodba (závěr) */
.corridor-sm { position: relative; width: 250px; height: 280px; max-width: 100%; }
.corridor-sm .front { position: absolute; left: 0; top: 0; width: 196px; height: 280px; border: 10px solid var(--ng-navy); }
.corridor-sm .mid { position: absolute; left: 186px; top: 26px; width: 60px; height: 228px; border: 10px solid var(--ng-open-blue); border-left: 0; }

/* Kroky (skutečné pořadí) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-bottom: var(--ng-rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: var(--ng-rule); font-size: 18px; line-height: 1.5; }
.steps li::before { content: counter(step, decimal-leading-zero); font-weight: 700; color: var(--ng-action-blue); }

/* Karty témat a FAQ */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.topic { background: var(--ng-white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.topic b { font-size: 22px; line-height: 1.2; }
.topic p { font-size: 16px; color: var(--ng-text-soft); }
.faq { border-bottom: var(--ng-rule); max-width: 880px; }
.faq details { border-top: var(--ng-rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ng-text-soft); max-width: 70ch; }

/* Text (ochrana údajů) */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin: 24px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.note { background: var(--ng-sun); padding: 16px 20px; font-size: 15px; }

/* Patička */
.site-footer { background: var(--ng-navy); color: var(--ng-on-navy-soft); font-size: 15px; line-height: 1.6; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 40px; padding-block: 56px; }
.site-footer .col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer .col-wide { flex: 2 1 300px; }
.site-footer b { color: var(--ng-beige); }
.site-footer a { color: var(--ng-on-navy-soft); }
.site-footer a:hover { color: var(--ng-white); }
.site-footer .logo { width: 180px; margin-bottom: 8px; }

/* Lepivé tlačítko na mobilu */
.sticky-cta { display: none; }
@media (max-width: 719px) {
  .has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ng-beige); border-top: var(--ng-rule); padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter); }
  .sticky-cta .btn { width: 100%; }
}
