/* ==========================================================================
   Poníky deťom – redizajn
   ========================================================================== */

:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --tint: #f3eedf;
  --ink: #1d2a21;
  --ink-soft: #4d5b51;
  --line: #e7dfcd;

  --green: #2f5c3a;
  --green-deep: #1f3f29;
  --green-tint: #e4edd8;
  --sun: #f2c240;
  --sun-tint: #fcefc4;
  --heart: #d9554a;
  --heart-tint: #f9e1dc;

  --radius-lg: clamp(24px, 3vw, 36px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(29 42 33 / 0.05), 0 18px 40px -20px rgb(29 42 33 / 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
}

/* Základ ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.rounded { border-radius: var(--radius); }

/* Tlačidlá ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hlavička ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 247 239 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(231 223 205 / 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 58px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em;
}

/* Na desktope je navigácia bežný riadok odkazov – zrušíme predvolené štýly popoveru */
.site-nav {
  position: static;
  inset: auto;
  display: flex;
  gap: 4px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;
}
.site-nav > a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-nav > a:hover { background: var(--tint); color: var(--ink); }

.site-nav__contact { display: none; }

.site-header__cta svg { fill: currentColor; stroke: none; width: 1em; height: 1em; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.menu-toggle svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.menu-toggle__close { display: none; }

/* Mobil a tablet: rozbaľovacie menu pod hlavičkou */
@media (max-width: 1080px) {
  .site-header__inner { gap: 10px; }
  .menu-toggle { display: grid; }

  .site-header:has(.site-nav:popover-open) .menu-toggle { background: var(--ink); color: var(--bg); }
  .site-header:has(.site-nav:popover-open) .menu-toggle__open { display: none; }
  .site-header:has(.site-nav:popover-open) .menu-toggle__close { display: block; }
  body:has(.site-nav:popover-open) { overflow: hidden; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    overflow-y: auto;
    /* stmavenie stránky pod menu, hlavička zostáva svetlá */
    box-shadow: 0 0 0 100vmax rgb(29 42 33 / 0.4);
    clip-path: inset(0 -100vmax -100vmax -100vmax);
    transition: opacity 0.2s ease, translate 0.2s ease, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
  }
  .site-nav:not(:popover-open) { display: none; opacity: 0; translate: 0 -12px; }
  @starting-style {
    .site-nav:popover-open { opacity: 0; translate: 0 -12px; }
  }

  .site-nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    font-variation-settings: "SOFT" 100;
    color: var(--ink);
  }
  .site-nav > a::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border: solid var(--green);
    border-width: 2px 2px 0 0;
    rotate: 45deg;
  }
  .site-nav > a:hover { background: none; color: var(--green); }

  .site-nav__contact { display: grid; gap: 10px; margin-top: 24px; }
}

/* Staršie prehliadače bez popover API: odkazy sa zobrazia v riadku pod logom */
@supports not selector(:popover-open) {
  @media (max-width: 1080px) {
    .site-header__inner { flex-wrap: wrap; }
    .menu-toggle,
    .site-nav__contact { display: none; }
    .site-nav {
      position: static;
      order: 3;
      flex-flow: row wrap;
      width: 100%;
      padding: 0 0 12px;
      border: 0;
      box-shadow: none;
      clip-path: none;
    }
    .site-nav > a { padding: 6px 10px; font: 500 0.95rem var(--font-body); border: 0; }
    .site-nav > a::after { content: none; }
  }
}

@media (max-width: 480px) {
  .brand img { width: 46px; }
  .brand__name { font-size: 1.1rem; }
  .site-header__cta span { display: none; }
  .site-header__cta { width: 44px; padding: 0; }
}

/* Hero -------------------------------------------------------------------- */

.hero { padding-top: clamp(40px, 7vw, 96px); }

.hero__top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
  background: linear-gradient(transparent 70%, var(--sun-tint) 70% 92%, transparent 92%);
}

.hero__side .lead { margin-bottom: 0; }

.hero__photo {
  position: relative;
  margin: 0;
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 1920 / 670;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.sticker {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: 0;
  translate: 0 -38%;
  display: grid;
  place-items: center;
  width: clamp(108px, 13vw, 156px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  text-align: center;
  rotate: 8deg;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px !important;
}
.stats li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stats strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--green);
  white-space: nowrap;
}
.stats span { color: var(--ink-soft); line-height: 1.35; }

@media (max-width: 860px) {
  .hero__top { grid-template-columns: 1fr; align-items: start; }
  .hero__photo img { aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stats li { padding: 16px 20px; }
}

/* Sekcie ------------------------------------------------------------------ */

.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--tint); }

.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section__head h2 { margin-bottom: 16px; }

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  max-width: none;
}
.section__head--row h2 { margin-bottom: 0; }
.section__head--row .lead { margin: 0; max-width: 34ch; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split h2 { margin-bottom: 32px; }

.split__media { position: relative; padding: 0 12% 18% 0; }
.split__media > img:first-child { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow);
}

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

/* Kroky */

.steps { display: grid; gap: 14px; }
.steps li {
  display: flex;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }
.steps__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun-tint);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Poníky ------------------------------------------------------------------ */

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.tag--sun { background: var(--sun-tint); color: #7a5600; }
.tag--heart { background: var(--heart-tint); color: #9b2f25; }
.tag--green { background: var(--green-tint); color: var(--green-deep); }

.pony {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pony__photo { overflow: hidden; }
.pony__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pony:hover .pony__photo img { transform: scale(1.04); }

.pony__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 28px; }
.pony__body > p { color: var(--ink-soft); font-size: 0.97rem; }

.pony__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pony__head h3 { font-size: clamp(1.6rem, 2vw, 1.9rem); }

.pony__meta {
  margin: 4px 0 14px !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green) !important;
}

.pony--featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 24px;
}
.pony--featured .pony__photo img { height: 100%; aspect-ratio: auto; min-height: 360px; }
.pony--featured .pony__body {
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}
.pony--featured .pony__head { justify-content: flex-start; }
.pony--featured .pony__head h3 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.pony--featured .pony__body > p { font-size: 1.02rem; }

.pony-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footnote { margin-top: 24px; font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 1080px) {
  .pony-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pony--featured { grid-template-columns: 1fr; }
  .pony--featured .pony__photo img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .pony-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Prínosy ----------------------------------------------------------------- */

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius-lg);
}

.panel--green {
  background: var(--green-deep);
  color: #f4efe2;
}
/* jemné kopce Liptova v pozadí */
.panel--green::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background:
    radial-gradient(120% 100% at 15% 100%, rgb(255 255 255 / 0.05) 0 45%, transparent 46%),
    radial-gradient(90% 90% at 75% 110%, rgb(255 255 255 / 0.05) 0 50%, transparent 51%);
  pointer-events: none;
}

.section__head--light .eyebrow { color: var(--sun); }
.section__head--light .lead { color: rgb(244 239 226 / 0.78); }

.benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit {
  padding: 28px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
}
.benefit__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sun);
}
.benefit h3 { font-size: 1.75rem; margin-bottom: 18px; }
.benefit li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  line-height: 1.45;
  color: rgb(244 239 226 / 0.88);
}
.benefit li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--sun);
}

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

/* Animoterapia ------------------------------------------------------------ */

.split--text { align-items: start; }
.split--text h2 { margin-bottom: 20px; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 32px); }

@media (max-width: 860px) {
  .split__sticky { position: static; }
}

/* Škôlky ------------------------------------------------------------------ */

.schools {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.schools h2 { margin-bottom: 16px; }
.schools__photo { margin: 32px 0 0; }
.schools__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.schools__list { display: grid; gap: 14px; }

.school-group {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.school-group h3 { font-size: 1.2rem; margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 0.92rem;
  font-weight: 500;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--heart);
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.cta-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cta-card svg { width: 28px; height: 28px; transition: translate 0.2s ease; }
.cta-card:hover { background: #c4473d; }
.cta-card:hover svg { translate: 4px 0; }

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

/* Zaujímavosti ------------------------------------------------------------ */

.stories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story__body { padding: clamp(24px, 3vw, 36px); color: var(--ink-soft); }
.story h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 14px; color: var(--ink); }
.story__meta {
  margin-bottom: 8px !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}
.story .more-link { margin-top: 4px; }
.story ul { margin-bottom: 1em; }
.story li {
  position: relative;
  padding: 5px 0 5px 28px;
  line-height: 1.5;
}
.story li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231f3f29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--sun-tint);
}

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

/* Galéria ----------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 220px);
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

.gallery__item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(251 247 239 / 0.92);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--tall { grid-row: span 1; grid-column: span 2; }
}

/* Kontakt ----------------------------------------------------------------- */

.panel--sun { background: var(--sun); }
.panel--sun .eyebrow { color: var(--green-deep); }
.panel--sun .lead { color: rgb(29 42 33 / 0.78); }

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.contact h2 { margin-bottom: 16px; }
#kontakt { padding-bottom: clamp(56px, 7vw, 96px); }

.contact__links { display: grid; gap: 12px; margin-top: 32px; max-width: 460px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-link small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
}
.contact-link__icon svg { width: 22px; height: 22px; }
.contact-link:first-child .contact-link__icon svg { fill: currentColor; stroke: none; }

.contact__card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--bg);
  font-style: normal;
  line-height: 1.6;
}
.contact__card img { width: 72px; margin-bottom: 16px; }
.contact__card p { margin-bottom: 20px; color: var(--ink-soft); }
.contact__card strong { color: var(--ink); }

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

/* Pätička ----------------------------------------------------------------- */

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px 48px;
  align-items: center;
}

.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img { width: 64px; }
.site-footer__brand p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; max-width: 42ch; }
.site-footer__brand strong { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }

.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.site-footer__nav a { font-size: 0.92rem; text-decoration: none; color: var(--ink-soft); }
.site-footer__nav a:hover { color: var(--ink); text-decoration: underline; }

.site-footer__copy {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { justify-content: flex-start; }
}

/* Podstránky -------------------------------------------------------------- */

.site-nav > a[aria-current="page"] { background: var(--green-tint); color: var(--green-deep); }
@media (max-width: 1080px) {
  .site-nav > a[aria-current="page"] { background: none; color: var(--green); }
}

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin-bottom: 18px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.subnav a:hover,
.subnav a.is-active { border-color: var(--green); background: var(--green-tint); }
.subnav__pony { padding-left: 6px !important; }
.subnav__pony img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Profily poníkov */

.profiles { display: grid; gap: clamp(64px, 9vw, 120px); }

.pony-profile {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-areas:
    "photo body"
    "thumbs thumbs";
  gap: clamp(24px, 4vw, 56px) clamp(28px, 5vw, 72px);
  align-items: center;
}
.pony-profile--flip {
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas:
    "body photo"
    "thumbs thumbs";
}

.pony-profile__photo { grid-area: photo; }
.pony-profile__photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pony-profile__body { grid-area: body; }
.pony-profile__body h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin-bottom: 16px; }
.pony-profile__body > p { color: var(--ink-soft); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.facts div {
  display: flex;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-tint);
  font-size: 0.92rem;
}
.facts dt { color: var(--ink-soft); }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; font-weight: 700; color: var(--green-deep); }

.pony-profile__thumbs { grid-area: thumbs; }
.pony-profile__thumbs-title {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pony-profile__thumbs-title span { font-weight: 500; letter-spacing: 0; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.thumbs figure,
.masonry figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--tint);
}
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.thumbs figure:hover img,
.masonry figure:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
  .pony-profile,
  .pony-profile--flip {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "body" "thumbs";
  }
}

/* Dokument (animoterapia) */

.doc {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.doc__toc { position: sticky; top: calc(var(--header-h) + 32px); }
.doc__toc-title {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.doc__toc ol { list-style: none; margin: 0; padding: 0; }
.doc__toc ol ol { margin: 4px 0 10px 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.doc__toc a {
  display: block;
  padding: 5px 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.doc__toc > nav > ol > li > a { font-weight: 700; color: var(--ink); }
.doc__toc a:hover,
.doc__toc a.is-active { color: var(--green); }
.doc__toc a.is-active { font-weight: 700; }

.doc-section + .doc-section {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .doc__toc {
    position: static;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--surface);
  }
}

/* Typografia dlhých textov */

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(2.1rem, 3.6vw, 2.9rem); margin-bottom: 8px; }
.prose h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin: 40px 0 14px; }
.prose h3 .num { color: var(--green); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.prose ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.prose ul > li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}
.prose ul.columns { columns: 2 220px; column-gap: 32px; }
.prose ul.columns li { break-inside: avoid; }

.cite {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.cite:hover { text-decoration: underline; }

.callout {
  margin-top: 36px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--green-deep);
  color: rgb(244 239 226 / 0.88);
}
.callout p { color: inherit; }
.callout strong { color: var(--sun); }
.callout__title {
  margin-bottom: 10px !important;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff !important;
}
.callout__link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--sun);
}

.sources { list-style: none; margin: 0; padding: 0; }
.sources li {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  transition: background-color 0.4s ease;
}
.sources li:target { background: var(--sun-tint); }
.sources__num { margin-right: 4px; font-weight: 700; color: var(--green); }
.sources a { color: var(--green); }

/* Škôlky */

.aspects { display: grid; gap: clamp(56px, 8vw, 104px); }

.aspect {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.aspect--flip .aspect__media { order: 2; }
.aspect__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aspect h3 { margin-top: 0; }
.aspect__question { margin-top: 24px; font-weight: 700; color: var(--ink) !important; }

.prose .checklist > li { padding-left: 30px; color: var(--ink); font-weight: 500; }
.prose .checklist > li::before {
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231f3f29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--sun-tint);
}

@media (max-width: 860px) {
  .aspect { grid-template-columns: 1fr; }
  .aspect--flip .aspect__media { order: 0; }
}

.years { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.year {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.year p { color: var(--ink-soft); }
.year strong { color: var(--ink); }
.year__title {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--green);
}
.year__groups { display: grid; gap: 22px; margin-top: 24px; }
.year-group h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.year-group ul { list-style: none; margin: 0; padding: 0; }
.year-group li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cta-card--inline { margin-top: 24px; }

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

/* Galéria */

.gallery-block + .gallery-block { margin-top: clamp(48px, 6vw, 80px); }
.gallery-block h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.gallery-block .count {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.masonry { columns: 4 220px; column-gap: 12px; }
.masonry figure { margin-bottom: 12px; break-inside: avoid; }
.masonry img { width: 100%; transition: transform 0.5s ease; }

.ext-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.ext-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  line-height: 1.45;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ext-links a:hover { border-color: var(--green); transform: translateY(-2px); }
.ext-links svg { color: var(--green); }

/* Úvod – odkazy na podstránky */

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.more-link svg { transition: translate 0.2s ease; }
.more-link:hover { text-decoration: underline; }
.more-link:hover svg { translate: 4px 0; }
.panel--green .more-link { color: var(--sun); }

.pony__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.pony__more:hover { text-decoration: underline; }

.link-cards { display: grid; gap: 12px; }
.link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.link-card:hover { border-color: var(--green); transform: translateY(-2px); }
.link-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
}
.link-card span { grid-column: 1; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.link-card svg { grid-row: 1 / span 2; grid-column: 2; width: 24px; height: 24px; color: var(--green); }

.split--text .callout { margin-top: 28px; }

/* Efekty (script.js) ------------------------------------------------------ */

.site-header {
  transition: translate 0.35s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgb(29 42 33 / 0.45); }
.site-header.is-hidden { translate: 0 -100%; }

.site-nav > a.is-active { background: var(--green-tint); color: var(--green-deep); }
@media (max-width: 1080px) {
  .site-nav > a.is-active { background: none; color: var(--green); }
}

/* Úvodná animácia hero časti */
@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
}
@keyframes pop {
  from { opacity: 0; scale: 0.4; rotate: -30deg; }
}

.js .hero .eyebrow,
.js .hero h1,
.js .hero__side,
.js .hero__photo img,
.js .stats li {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.js .hero h1 { animation-delay: 0.08s; }
.js .hero__side { animation-delay: 0.2s; }
.js .hero__photo img { animation-delay: 0.3s; }
.js .stats li:nth-child(1) { animation-delay: 0.45s; }
.js .stats li:nth-child(2) { animation-delay: 0.53s; }
.js .stats li:nth-child(3) { animation-delay: 0.61s; }
.js .sticker { animation: pop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 0.85s backwards; }

.js .page-head .wrap > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.js .page-head .wrap > :nth-child(2) { animation-delay: 0.06s; }
.js .page-head .wrap > :nth-child(3) { animation-delay: 0.14s; }
.js .page-head .wrap > :nth-child(4) { animation-delay: 0.22s; }

/* Objavovanie obsahu pri scrollovaní */
.js .reveal { opacity: 0; translate: 0 36px; }
.js .reveal.is-visible {
  opacity: 1;
  translate: none;
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
}

/* Galéria – zväčšenie fotky */
.js [data-gallery] figure { cursor: zoom-in; }
[data-gallery] figure:focus-visible { outline-offset: 4px; }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 72px clamp(16px, 8vw, 96px);
  border: 0;
  background: transparent;
  color: #f4efe2;
  overflow: hidden;
}
.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade 0.25s ease;
}
.lightbox::backdrop { background: rgb(16 24 18 / 0.92); }
.lightbox[open]::backdrop { animation: fade 0.25s ease; }

@keyframes fade {
  from { opacity: 0; }
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
}
.lightbox__img {
  width: min(100%, 880px);
  max-height: calc(100dvh - 200px);
  object-fit: contain;
  border-radius: var(--radius);
  touch-action: pan-y;
  user-select: none;
}
.lightbox__caption { font-weight: 600; }

.lightbox__count {
  position: fixed;
  top: 28px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: rgb(244 239 226 / 0.7);
}

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox__btn:hover { background: rgb(255 255 255 / 0.24); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev,
.lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

@media (max-width: 760px) {
  .lightbox { padding-inline: 16px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 20px; translate: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

html:has(.lightbox[open]) { overflow: hidden; }

/* Pohyb ------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}
