/* ============================================================
   Stojíme s univerzitami – shared stylesheet
   ============================================================ */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #185602;
  --accent-hover:  #1f6e03;
  --bg:            #f7aed0;
  --text:          #111111;
  --text-muted:    #5a3a4a;
  --border:        #e888b8;
  --surface:       #fcd0e5;
  --max-w:         800px;
  --max-w-wide:    1080px;
  --nav-h:         64px;
  --radius:        6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout ─────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__brand img { height: 28px; width: auto; flex-shrink: 0; }

.nav__brand:hover { color: var(--accent); text-decoration: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__list a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav__list a:not(.btn):hover,
.nav__list a:not(.btn).active { color: var(--accent); text-decoration: none; }

.nav__list .btn { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.nav__list .btn--primary,
.nav__list .btn--primary:hover { color: #fff !important; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__list {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
  }

  .nav__list.open { display: flex; }

  .nav__list li { text-align: left; }

  .nav__list a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .nav__list .btn {
    margin: 0.5rem 1.5rem 0;
    text-align: center;
    display: block;
  }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn--lg { padding: 0.9rem 2.25rem; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__subtitle strong {
  color: var(--accent);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ────────────────────────────────────────────── */

.section { padding: 5rem 0; }
.section--alt { background: var(--surface); }
.section--flush-top { padding-top: 0; }

.section__header { text-align: center; margin-bottom: 3rem; }

.section__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Cards ───────────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Pullquote ───────────────────────────────────────────── */

.pullquote {
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pullquote p {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--text);
}

.pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* ── Open letter ─────────────────────────────────────────── */

.letter {
  max-width: 660px;
  margin: 0 auto;
}

.letter__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.letter__body { font-size: 1rem; line-height: 1.85; }

.letter__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.letter__body p { margin-bottom: 1.25rem; }

.letter__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.letter__body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.letter__body ul li { margin-bottom: 0.4rem; }

.letter__signoff {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.letter__signatories-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.letter__download {
  margin-top: 2.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.letter__download p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Petition counter ────────────────────────────────────── */

.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.counter__item { text-align: center; }

.counter__number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.counter__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* ── Form ────────────────────────────────────────────────── */

.form { max-width: 560px; margin: 0 auto; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 540px) {
  .form__row { grid-template-columns: 1fr; }
}

.form__group { margin-bottom: 1.35rem; }

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.form__label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 52, 97, 0.12);
}

.form__textarea { min-height: 90px; resize: vertical; }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__submit { width: 100%; }

.form__note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

/* ── Contact ─────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-info__item { margin-bottom: 2rem; }

.contact-info__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-info__value { font-size: 1rem; }
.contact-info__value a { color: var(--text); font-weight: 500; }
.contact-info__value a:hover { color: var(--accent); }

/* ── CTA banner ──────────────────────────────────────────── */

.cta-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.cta-banner__text {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.cta-banner .btn--outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.cta-banner .btn--outline:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

/* ── Page header ─────────────────────────────────────────── */

.page-header {
  padding: 4rem 0 2rem;
  margin-bottom: 2rem;
}

.page-header__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-header__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Cookie notice ───────────────────────────────────────── */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--text);
  color: #fff;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  line-height: 1.5;
}
.cookie-notice p { margin: 0; color: #fff; }
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice__btn {
  flex-shrink: 0;
  padding: 0.4rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Signatories ─────────────────────────────────────────── */

.signatories__list {
  list-style: none;
  columns: 3;
  column-gap: 2rem;
}

@media (max-width: 768px) { .signatories__list { columns: 2; } }
@media (max-width: 480px) { .signatories__list { columns: 1; } }

.signatory {
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.signatory__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.signatory__affiliation {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pagination__btn:hover:not(:disabled):not(.pagination__btn--active) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination__btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination__ellipsis {
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--text); text-decoration: none; }

/* ── Utilities ───────────────────────────────────────────── */

.divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
