/* Recyklované pohádky — light flex redesign */

:root {
  --bg: #f0ebde;
  --bg-soft: #f7f3ea;
  --paper: #fffdf8;
  --ink: #2c2c1e;
  --muted: #5c5c4a;
  --olive: #5e5f38;
  --leaf: #3e570d;
  --lime: #689d05;
  --leaf-soft: #b3cc82;
  --line: #d9d2c0;
  --max: 1000px;
  --font: "Sintony", "Segoe UI", sans-serif;
  --display: "Sintony", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(104, 157, 5, 0.12),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 90% 10%,
      rgba(62, 87, 13, 0.08),
      transparent 40%
    ),
    linear-gradient(180deg, #ebe4d4 0%, var(--bg) 28%, #e8e1d0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--leaf);
  text-decoration: none;
}

a:hover {
  color: var(--lime);
  text-decoration: underline;
}

.site-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 235, 222, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(94, 95, 56, 0.15);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--leaf);
  min-width: 9rem;
  animation: brand-in 0.7s ease both;
}

.brand:hover {
  text-decoration: none;
  color: var(--lime);
}

.brand__mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__tag {
  font-size: 0.72rem;
  color: var(--olive);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  color: var(--olive);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-facebook {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: #3b5998;
  color: #fff !important;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
}

.nav-facebook:hover {
  background: #2d4373;
  color: #fff !important;
}

.nav-facebook img {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--olive);
  background: transparent;
  color: var(--olive);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

main {
  flex: 1;
  width: 100%;
}

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

.page-header {
  margin: 0 0 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--leaf);
  line-height: 1.2;
}

.breadcrumbs {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs span {
  margin: 0 0.35rem;
  color: var(--line);
}

/* Homepage hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(
      180deg,
      rgba(44, 44, 30, 0.15) 0%,
      rgba(44, 44, 30, 0.55) 100%
    ),
    url("/assets/img/center-content.jpg") center / cover no-repeat,
    var(--olive);
  color: #fff;
  animation: hero-fade 1s ease both;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.75rem;
  width: 100%;
}

.hero__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.45;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn--primary {
  background: var(--lime);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(104, 157, 5, 0.35);
}

.btn--primary:hover {
  background: #5a8a04;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.section {
  margin: 2.5rem 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  color: var(--leaf);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  text-align: center;
}

.section__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
}

.charts {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.92rem;
  margin: 0 0 2rem;
}

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

.charts th {
  background: #e8efd4;
  color: var(--leaf);
  font-weight: 700;
}

.charts img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 2px;
}

.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.grid-2 > * {
  flex: 1 1 280px;
}

.prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prices li {
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--lime);
}

.prices span {
  display: block;
  font-weight: 700;
  color: var(--leaf);
  margin-bottom: 0.25rem;
}

.news {
  margin: 0;
  padding-left: 1.1rem;
}

.news li {
  margin-bottom: 0.65rem;
}

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

.celebrity-card {
  flex: 1 1 140px;
  max-width: 150px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.celebrity-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.celebrity-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  /* p1–p6 are vertical sprites: faded top + clean bottom — show clean half only */
  object-position: center bottom;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(62, 87, 13, 0.15);
  margin-bottom: 0.5rem;
}

.celebrity-card h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--leaf);
}

.celebrity-card h5 {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.person-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.person {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.person img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center bottom;
  flex: 0 0 auto;
}

.person__body {
  flex: 1 1 220px;
}

.person h3 {
  margin: 0 0 0.2rem;
  color: var(--leaf);
}

.person h5 {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.person blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--leaf-soft);
  color: var(--muted);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-card {
  flex: 1 1 200px;
  max-width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(62, 87, 13, 0.12);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e8efd4;
}

.gallery-card__placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e8efd4, #d4ddb5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

.gallery-card a {
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--olive);
  font-weight: 700;
  text-decoration: none;
}

.pagination a:hover,
.pagination .is-active {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}

.detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.detail__side {
  flex: 1 1 260px;
}

.detail__meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.detail__meta li {
  margin-bottom: 0.35rem;
}

.detail__meta span {
  font-weight: 700;
  color: var(--olive);
}

.vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  background: var(--leaf);
  color: #fff;
  font-weight: 700;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3,
.prose h4,
.prose h6 {
  color: var(--leaf);
  margin: 1.5rem 0 0.6rem;
}

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

.prose .terms li {
  margin-bottom: 0.45rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.partners img {
  max-height: 42px;
  width: auto;
  filter: grayscale(0.15);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-cols > * {
  flex: 1 1 200px;
}

.footer-cols h4 {
  margin: 0 0 0.75rem;
  color: var(--leaf);
  font-size: 1rem;
}

.footer-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cols li {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-logo {
  display: block;
  width: 160px;
  height: 48px;
  margin: 0 auto 1rem;
  background: url("/assets/img/footer-logo.jpg") center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.romlidata {
  margin: 2rem 0;
}

.blog-container {
  margin: 1rem 0;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-card {
  flex: 1 1 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.blog-preview {
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-facebook {
    margin-left: 0;
    justify-content: center;
  }

  .charts {
    display: block;
    overflow-x: auto;
  }

  .gallery-card {
    max-width: none;
  }

  .hero {
    min-height: 70vh;
    align-items: flex-end;
  }
}
