:root {
  --forest: #0f2f24;
  --forest-deep: #081a14;
  --leaf: #1f6b4a;
  --macaw: #0d8a94;
  --gold: #d4a017;
  --coral: #d85a3a;
  --mist: #eef3f0;
  --paper: #f7faf8;
  --ink: #132019;
  --muted: #5a6b62;
  --line: rgba(15, 47, 36, 0.12);
  --shadow: 0 24px 60px rgba(8, 26, 20, 0.18);
  --radius: 1.25rem;
  --max: 72rem;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 138, 148, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 160, 23, 0.1), transparent 55%),
    linear-gradient(180deg, #e8f0eb 0%, var(--paper) 28%, #f4f7f5 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 26, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.55);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 40%;
  transform: none;
  animation: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 26, 20, 0.82) 0%, rgba(8, 26, 20, 0.45) 48%, rgba(8, 26, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 26, 20, 0.75) 0%, transparent 45%);
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 10ch;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.9s ease both;
}

.hero p {
  max-width: 34rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.6rem;
  animation: riseIn 1s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: riseIn 1s ease 0.18s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  font-weight: 650;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 42rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--macaw);
  font-weight: 650;
  margin: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.tips-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tip {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
}

.tip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.7s ease;
}

.tip:hover img {
  transform: scale(1.03);
}

.tip-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.3rem;
  background: linear-gradient(0deg, rgba(8, 26, 20, 0.92), rgba(8, 26, 20, 0.15));
}

.tip-body h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
}

.tip-body p {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.species-card {
  display: grid;
  grid-template-rows: 14rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(8, 26, 20, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.species-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.species-card .thumb {
  position: relative;
  height: 14rem;
  background: #d7e3dc;
  overflow: hidden;
}

.species-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.species-card .meta {
  padding: 1.1rem 1.15rem 1.25rem;
}

.species-card .latin {
  color: var(--macaw);
  font-size: 0.82rem;
  font-style: italic;
  margin: 0 0 0.25rem;
}

.species-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.species-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.info-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.info-panel {
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.info-panel.accent {
  background:
    linear-gradient(145deg, rgba(15, 47, 36, 0.96), rgba(13, 138, 148, 0.88)),
    var(--forest);
  color: #fff;
  border: none;
}

.info-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.info-panel p {
  margin: 0 0 1rem;
  color: inherit;
  opacity: 0.92;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 14rem 14rem;
  gap: 0.8rem;
}

.gallery a {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

.gallery a:hover img {
  transform: scale(1.03);
}

.gallery a:first-child {
  grid-row: 1 / span 2;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.article-row {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.article-row img {
  width: 12rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.9rem;
}

.article-row .cat {
  color: var(--macaw);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
}

.article-row h3 {
  font-family: var(--font-display);
  margin: 0.2rem 0 0.35rem;
  font-size: 1.45rem;
}

.article-row p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  position: relative;
  min-height: clamp(15rem, 34vh, 24rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #123528;
  isolation: isolate;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 26, 20, 0.78) 0%, rgba(8, 26, 20, 0.28) 55%, rgba(8, 26, 20, 0.18) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 1.75rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.5rem;
  max-width: 18ch;
}

/* Články: ostrý banner bez ořezu a upscalingu */
.article-top {
  background:
    linear-gradient(180deg, rgba(15, 47, 36, 0.06), transparent 40%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.article-top-inner {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 2rem 0 0.5rem;
}

.article-top .eyebrow {
  margin-bottom: 0.35rem;
}

.article-top h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  color: var(--ink);
  max-width: 18ch;
}

.article-top .deck {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40rem;
}

.article-banner {
  width: min(100% - 1.25rem, 52rem);
  margin: 0 auto 1.5rem;
}

.article-banner img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 0.9rem;
  box-shadow: 0 12px 36px rgba(8, 26, 20, 0.1);
  image-rendering: auto;
}

/* Druhy: malý náhled vedle nadpisu */
.species-head {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 1.75rem 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: 1rem 1.25rem;
  align-items: start;
}

.species-head-text .eyebrow {
  margin-bottom: 0.35rem;
}

.species-head-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
  color: var(--ink);
  max-width: 16ch;
}

.species-head-text .deck {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.species-banner {
  width: 9.5rem;
  margin: 0.15rem 0 0;
}

.species-banner img {
  width: 9.5rem;
  height: 9.5rem;
  object-fit: cover;
  display: block;
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(8, 26, 20, 0.12);
}

@media (max-width: 640px) {
  .species-head {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    padding-top: 1.35rem;
  }

  .species-banner,
  .species-banner img {
    width: 6.75rem;
    height: 6.75rem;
  }

  .species-head-text h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}

.prose .species-inline,
.prose figure.species-inline {
  width: min(100%, 9.5rem);
  margin-left: auto;
  margin-right: auto;
}

.prose .species-inline img {
  width: 9.5rem;
  height: 9.5rem;
  object-fit: cover;
  border-radius: 0.85rem;
}

.prose {
  width: min(100% - 2rem, 48rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.prose-full {
  width: min(100% - 2rem, 52rem);
}

.prose h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

.prose h3 {
  font-family: var(--font-display);
  margin-top: 1.5rem;
}

.prose .lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.prose img,
.prose .content-img {
  display: block;
  width: min(100%, 28rem);
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 1rem;
  object-fit: unset;
  background: transparent;
}

.prose img[width] {
  width: min(100%, 28rem);
  height: auto;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--mist);
}

.source-note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.fact {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
}

.fact span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--macaw);
  margin-bottom: 0.25rem;
}

.fact strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
}

.ring-table {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.ring-table table {
  width: 100%;
  border-collapse: collapse;
}

.ring-table th,
.ring-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.ring-table th {
  background: var(--mist);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}

@keyframes heroDrift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.03) translate3d(-0.4%, 0, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .tips-rail,
  .species-grid,
  .info-strip,
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 12rem 12rem 12rem;
  }

  .gallery a:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 16rem;
  }

  .article-row {
    grid-template-columns: 8.5rem 1fr;
  }

  .article-row .btn {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 26, 20, 0.96);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .tips-rail,
  .species-grid,
  .info-strip,
  .facts,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-rows: none;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row img {
    width: 100%;
    height: 12rem;
  }
}


/* NextGEN fotogalerie — papousek 1.1.2 */
.gallery-home { width: 100%; }
.gallery-home .ngg-navigation { display: none; }
.gallery-more { margin: 1.5rem 0 0; text-align: center; }
article.prose:has(.nextgen_pro_thumbnail_grid),
.prose-gallery { width: min(100% - 2rem, 72rem) !important; max-width: none; }
.nextgen_pro_thumbnail_grid,
.ngg-galleryoverview {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  width: 100%;
  clear: both;
}
.nextgen_pro_thumbnail_grid::after,
.ngg-galleryoverview::after { display: none !important; content: none !important; }
.nextgen_pro_thumbnail_grid .image-wrapper,
.ngg-gallery-thumbnail-box {
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0.85rem;
  aspect-ratio: 1;
  background: rgba(8, 26, 20, 0.06);
}
.nextgen_pro_thumbnail_grid .image-wrapper a { display: block; width: 100%; height: 100%; }
.prose .nextgen_pro_thumbnail_grid img,
.prose .nextgen_pro_thumbnail_grid picture,
.prose .nextgen_pro_thumbnail_grid picture img,
.gallery-home .nextgen_pro_thumbnail_grid img,
.gallery-home .nextgen_pro_thumbnail_grid picture img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center 30%;
}
.ngg-navigation {
  display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; align-items: center;
  margin: 1.75rem 0 0.5rem; grid-column: 1 / -1;
}
.ngg-navigation a,
.ngg-navigation span.current {
  display: inline-flex; min-width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
  padding: 0 0.65rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 0.92rem; background: rgba(255,255,255,0.55);
}
.ngg-navigation span.current { background: var(--forest); border-color: var(--forest); color: #fff; }

.nextgen_pro_thumbnail_grid .image-wrapper picture { display:block!important; width:100%!important; height:100%!important; }
.nextgen_pro_thumbnail_grid .image-wrapper img,
.nextgen_pro_thumbnail_grid .image-wrapper picture img {
  width:100%!important; max-width:none!important; height:100%!important; max-height:none!important;
  object-fit:cover!important; margin:0!important;
}
