/* Informace pro žáky — visual language aligned with index (home) */
.ps {
  --green-900: #1e3626;
  --green-800: #274733;
  --green-700: #315a41;
  --green-600: #3d6b4c;
  --green-500: #4f8161;
  --green-300: #8aa889;
  --green-100: #dbe6d6;
  --cream: #f8f5ee;
  --paper: #fffdf8;
  --ink-soft: #55524a;
  --radius-lg: 26px;
  --radius: 18px;
  --pill: 999px;
  --shadow-sm: 0 4px 16px rgba(30, 54, 38, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;

  font-family: var(--font-body);
  color: #2c2a24;
  background: var(--cream);
  line-height: 1.7;
}

.ps *,
.ps *::before,
.ps *::after { box-sizing: border-box; }

/* Hero */
.ps-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 9vh, 96px) 0 clamp(120px, 16vw, 200px);
  background: linear-gradient(180deg, #fcfbf6 0%, var(--cream) 48%, #f2ede1 100%);
}

.ps-hero::before {
  content: "";
  position: absolute;
  top: clamp(20px, 6vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 168, 137, 0.32), transparent 62%);
  z-index: 0;
  pointer-events: none;
}

.ps-hero .ps-opening-wrap {
  position: relative;
  z-index: 2;
}

.ps-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 9px 20px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(61, 107, 76, 0.2);
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-700);
}

.ps-hero-eyebrow .ps-leaf { fill: var(--green-500); }

.ps-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--green-900);
  margin: 0 0 16px;
}

.ps-hero-lead {
  max-width: 52ch;
  margin: 0 auto 24px;
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
}

.ps-hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ps-hero-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1.5px solid rgba(61, 107, 76, 0.35);
  background: rgba(255, 255, 255, 0.65);
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.ps-hero-nav a:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--green-600);
  color: var(--green-800);
}

.ps-hero-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(80px, 12vw, 140px);
  z-index: 1;
}

.ps-organizace,
.ps-opening,
.ps-schedule {
  scroll-margin-top: 100px;
}

/* Opening invitation */
.ps-opening {
  --green-900: #1e3626;
  --green-800: #274733;
  --green-600: #3d6b4c;
  --green-500: #4f8161;
  --green-300: #8aa889;
  --cream: #f8f5ee;
  --radius-lg: 26px;
  --radius: 18px;
  --shadow-lg: 0 26px 70px rgba(30, 54, 38, 0.18);
  --font-display: "Fraunces", "Georgia", serif;

  background: var(--cream);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  font-family: "Open Sans", "Segoe UI", sans-serif;
}

.ps-opening-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

.ps-opening-intro {
  margin: 0 auto 28px;
  max-width: 62ch;
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.65;
  color: #55524a;
}

.ps-opening-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(138, 168, 137, 0.22), transparent 55%),
    linear-gradient(150deg, var(--green-800), var(--green-900));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}

.ps-opening-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238aa889'%3E%3Cpath d='M20 3s-1 12-9 15c-5.5 2.1-8 3-8 3s.5-3 2-7C7.5 6 20 3 20 3z'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.12;
  transform: rotate(-12deg);
  pointer-events: none;
}

.ps-opening-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-opening-figure img {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
}

.ps-opening-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ps-opening-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-300);
}

.ps-opening-eyebrow .ps-leaf { fill: var(--green-300); }

.ps-opening-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--cream);
}

.ps-opening-lead {
  margin: 0 0 26px;
  color: rgba(248, 245, 238, 0.85);
  font-size: 1.08rem;
  max-width: 46ch;
}

.ps-opening-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ps-opening-facts li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(248, 245, 238, 0.16);
}

.ps-opening-facts li:last-child {
  border-bottom: 1px solid rgba(248, 245, 238, 0.16);
}

.ps-fact-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(248, 245, 238, 0.1);
  border: 1px solid rgba(248, 245, 238, 0.18);
}

.ps-fact-ic .ps-leaf { width: 22px; height: 22px; fill: var(--green-300); }

.ps-fact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 3px;
}

.ps-fact-value {
  font-size: 1.1rem;
  color: rgba(248, 245, 238, 0.95);
}

.ps-opening-facts strong { color: #fff; font-weight: 700; }

.ps-opening-note {
  margin: 20px 0 0;
  font-size: 0.95rem;
  color: rgba(248, 245, 238, 0.75);
  font-style: italic;
}

.ps-opening-cal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ps-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ps-cal-btn .ps-leaf { width: 18px; height: 18px; flex: none; }

.ps-cal-btn-primary {
  background: var(--cream);
  color: var(--green-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ps-cal-btn-primary .ps-leaf { fill: var(--green-900); }

.ps-cal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.ps-cal-btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(248, 245, 238, 0.35);
}

.ps-cal-btn-ghost:hover {
  background: rgba(248, 245, 238, 0.08);
  border-color: rgba(248, 245, 238, 0.55);
}

.ps-leaf { width: 18px; height: 18px; flex: none; }

/* Harmonogram slavnostního otevření */
.ps-schedule {
  background: var(--cream);
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  font-family: var(--font-body);
  border-top: 1px solid var(--green-100);
}

.ps-schedule-head {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 28px;
}

.ps-schedule-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3d6b4c;
}

.ps-schedule-eyebrow .ps-leaf { fill: #3d6b4c; }

.ps-schedule-head h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: #1e3626;
  margin: 0 0 12px;
  line-height: 1.15;
}

.ps-schedule-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #55524a;
}

.ps-schedule-lead strong { color: #274733; }

.ps-schedule-figure {
  margin: 0 auto;
  max-width: 720px;
}

.ps-schedule-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(30, 54, 38, 0.12);
  border: 1px solid rgba(61, 107, 76, 0.12);
}

/* Organizace školního roku — HTML leták */
.ps-organizace {
  background: var(--paper);
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  font-family: var(--font-body);
}

.ps-flyer {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(30, 54, 38, 0.12);
  border: 1px solid rgba(61, 107, 76, 0.12);
  overflow: hidden;
}

.ps-flyer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(61, 107, 76, 0.15);
}

.ps-flyer-logo {
  width: 90px;
  height: auto;
  flex: none;
}

.ps-flyer-contact {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #3d6b4c;
}

.ps-flyer-contact p {
  margin: 0 0 2px;
}

.ps-flyer-contact a {
  color: #274733;
  text-decoration: none;
}

.ps-flyer-contact a:hover {
  text-decoration: underline;
}

.ps-flyer-title-block {
  text-align: center;
  padding: 22px 28px 8px;
}

.ps-flyer-main-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: #1e3626;
  margin: 0 0 8px;
  line-height: 1.2;
}

.ps-flyer-subtitle {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #55524a;
  line-height: 1.5;
}

.ps-flyer-block {
  padding: 12px 28px;
}

.ps-flyer-section-title {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 18px;
  border-radius: 999px;
  background: #9ab094;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ps-flyer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-flyer-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 14px;
  margin-bottom: 6px;
  border: 1px solid rgba(154, 176, 148, 0.55);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ps-flyer-label {
  flex: 0 0 auto;
  min-width: 7.5em;
  font-weight: 600;
  color: #274733;
}

.ps-flyer-value {
  flex: 1;
  color: #333;
}

.ps-flyer-inline {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(154, 176, 148, 0.55);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

.ps-flyer-footer {
  position: relative;
  margin-top: 16px;
  min-height: 100px;
  padding-bottom: 8px;
}

.ps-flyer-wave {
  display: block;
  width: 100%;
  height: 72px;
}

.ps-flyer-decor {
  position: absolute;
  right: 20px;
  bottom: 12px;
  width: 110px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(30, 54, 38, 0.15);
  object-fit: cover;
}

@media (max-width: 900px) {
  .ps-opening-panel { grid-template-columns: 1fr; }
  .ps-opening-figure { order: -1; }
  .ps-opening-figure img { max-width: 300px; }
  .ps-opening-panel::after { width: 300px; height: 300px; right: -50px; bottom: -60px; }
}

@media (max-width: 575px) {
  .ps-hero-nav {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }

  .ps-opening-panel { padding: 26px 22px; }
  .ps-opening-facts .ps-fact-value { font-size: 1rem; }

  .ps-flyer-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ps-flyer-contact {
    text-align: center;
  }

  .ps-flyer-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ps-flyer-row {
    flex-direction: column;
    gap: 2px;
    border-radius: 14px;
  }

  .ps-flyer-label {
    min-width: 0;
  }

  .ps-flyer-decor {
    width: 88px;
    right: 14px;
    bottom: 8px;
  }
}
