:root {
    --color-dark: #14213d;
    --color-blue: #2f80ed;
    --color-cyan: #56ccf2;
    --color-mint: #9be7c4;
    --color-yellow: #f2c94c;
    --color-light: #f7fbff;
    --color-text: #1f2a44;
    --color-white: #ffffff;
    --color-border: #d9eaf4;
  
    --font-heading: "Baloo 2", sans-serif;
    --font-body: "Nunito Sans", sans-serif;
  
    --container-width: 1100px;
    --radius-large: 24px;
    --shadow-soft: 0 12px 30px rgba(20, 33, 61, 0.08);
  
    /* jednotné výšky obrázků */
    --hero-image-height: 420px;
    --section-image-height: 320px;
    --story-card-image-height: 240px;
    --detail-image-height: 460px;
    --gallery-image-height: 240px;
  }
  
  /* Základní nastavení */
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
  }
  
  h1,
  h2,
  h3 {
    margin-top: 0;
    line-height: 1.2;
    font-family: var(--font-heading);
    color: var(--color-dark);
  }
  
  h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
  }
  
  h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  p {
    margin-top: 0;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    display: block;
    max-width: 100%;
  }
  
  /* Šířka obsahu */
  .container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
  }
  
  .narrow {
    width: min(100% - 2rem, 850px);
    margin-inline: auto;
  }
  
  /* Odsazení sekcí */
  .section {
    padding: 4.5rem 0;
  }
  
  /* Malý text nad nadpisem */
  .eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-blue);
  }
  
  /* Hlavička */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(247, 251, 255, 0.92);
    backdrop-filter: blur(10px);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
  }
  
  /* Navigace */
  .main-nav ul,
  .footer-nav ul {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .main-nav a,
  .footer-nav a {
    font-weight: 700;
    color: var(--color-text);
  }
  
  .main-nav a:hover,
  .footer-nav a:hover,
  .story-link:hover {
    color: var(--color-blue);
  }
  
  /* Hero sekce */
  .hero {
    padding: 5rem 0 4rem;
    background:
      radial-gradient(circle at top right, rgba(86, 204, 242, 0.18), transparent 30%),
      radial-gradient(circle at left center, rgba(155, 231, 196, 0.16), transparent 30%),
      linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
  }
  
  .hero-small {
    padding: 4rem 0 2.5rem;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
  }
  
  .hero-description {
    max-width: 600px;
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  /* Jednotný wrapper obrázků */
  .hero-image,
  .image-block,
  .story-image,
  .detail-main-image,
  .gallery-item,
  .about-visual {
    overflow: hidden;
    border-radius: var(--radius-large);
  }
  
  /* Hero obrázek */
  .hero-image {
    min-height: var(--hero-image-height);
    box-shadow: var(--shadow-soft);
  }
  
  .hero-photo {
    width: 100%;
    height: var(--hero-image-height);
    object-fit: cover;
    border-radius: var(--radius-large);
  }
  
  /* Obrázek v běžné sekci */
  .section-photo {
    width: 100%;
    height: var(--section-image-height);
    object-fit: cover;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
  }
  
  /* Tlačítka */
  .button {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
  }
  
  .button-primary {
    color: var(--color-white);
    background-color: var(--color-blue);
    box-shadow: var(--shadow-soft);
  }
  
  .button-primary:hover {
    background-color: var(--color-dark);
  }
  
  .button-secondary {
    color: var(--color-dark);
    border: 2px solid var(--color-border);
    background-color: transparent;
  }
  
  .button-secondary:hover {
    color: var(--color-blue);
    border-color: var(--color-blue);
  }
  
  /* Placeholder box */
  .placeholder-box {
    display: grid;
    min-height: 260px;
    place-items: center;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-dark);
    border: 2px dashed rgba(20, 33, 61, 0.18);
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, rgba(86, 204, 242, 0.18), rgba(155, 231, 196, 0.25));
  }
  
  /* Dva sloupce */
  .two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .text-block p {
    max-width: 560px;
  }
  
  /* Nadpis sekce */
  .section-heading {
    max-width: 700px;
    margin-bottom: 2rem;
  }
  
  /* Grid pro příběhy */
  .story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .story-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
  }
  
  .story-image {
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }
  
  .story-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .story-thumb-montax {
    object-position: center 48%;
  }

  .story-thumb-shadow {
    object-position: center 34%;
  }

  .story-thumb-emz {
    object-position: center 42%;
  }
  
  .story-card-content {
    padding: 1.5rem;
  }
  
  .story-card-title {
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
  }
  
  .story-tag {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    border-radius: 999px;
    background-color: rgba(155, 231, 196, 0.28);
  }
  
  .story-date {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #5b6b88;
  }
  
  .story-link {
    font-weight: 800;
    color: var(--color-blue);
  }
  
  /* Box se smyslem projektu */
  .purpose-box {
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
  }
  
  /* CTA box */
  .cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.08), rgba(86, 204, 242, 0.12));
  }
  
  /* Patička */
  .site-footer {
    margin-top: 3rem;
    padding-top: 2.5rem;
    color: var(--color-white);
    background-color: var(--color-dark);
  }
  
  .site-footer h2 {
    margin-bottom: 0.3rem;
    color: var(--color-white);
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  
  .footer-nav a {
    color: var(--color-white);
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  /* Stránka o projektu */
  .about-visual {
    min-height: 340px;
  }
  
  .content-box {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
  }
  
  .content-box p:last-child {
    margin-bottom: 0;
  }
  
  .about-cta {
    align-items: center;
  }
  
  /* Detail příběhu */
  .detail-date {
    margin-bottom: 1rem;
  }
  
  .detail-main-image {
    min-height: var(--detail-image-height);
  }
  
  .detail-photo {
    width: 100%;
    height: var(--detail-image-height);
    object-fit: cover;
    display: block;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
  }
  
  .story-article {
    font-size: 1.05rem;
  }
  
  .story-article p {
    margin-bottom: 1.5rem;
  }

  /* Postavy v příběhu */
  .character-section {
    padding-top: 1rem;
  }

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

  .character-card {
    padding: 1.35rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
  }

  .character-card h3 {
    margin-bottom: 0.65rem;
  }

  .character-card p {
    margin-bottom: 0;
  }
  
  /* Galerie */
  .story-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  
  .gallery-item {
    min-height: var(--gallery-image-height);
  }
  
  .gallery-photo {
    width: 100%;
    height: var(--gallery-image-height);
    object-fit: cover;
    display: block;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
  }
  
  /* Navigace mezi příběhy */
  .story-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
  }
  
  .story-pagination-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
  }
  
  .story-pagination-links a {
    display: inline-block;
    padding: 0.2rem 0;
    font-weight: 700;
    color: var(--color-blue);
  }
  
  .story-pagination-links a:hover {
    color: var(--color-dark);
  }
  
  /* Tablet */
  @media (max-width: 900px) {
    :root {
      --hero-image-height: 300px;
      --section-image-height: 280px;
      --story-card-image-height: 220px;
      --detail-image-height: 320px;
      --gallery-image-height: 220px;
    }
  
    .hero-grid,
    .two-column,
    .footer-inner {
      display: grid;
      grid-template-columns: 1fr;
    }
  
    .story-grid {
      grid-template-columns: 1fr;
    }

    .character-grid {
      grid-template-columns: 1fr;
    }
  
    .story-gallery {
      grid-template-columns: 1fr;
    }
  
    .cta-box {
      display: grid;
      grid-template-columns: 1fr;
      text-align: left;
    }
  }
  
  /* Mobil */
  @media (max-width: 700px) {
    :root {
      --hero-image-height: 260px;
      --section-image-height: 240px;
      --story-card-image-height: 210px;
      --detail-image-height: 260px;
      --gallery-image-height: 220px;
    }
  
    .header-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .main-nav ul,
    .footer-nav ul {
      flex-wrap: wrap;
      gap: 0.75rem 1rem;
    }
  
    .section {
      padding: 3.5rem 0;
    }
  
    .hero {
      padding: 4rem 0 3rem;
    }
  
    .hero-small {
      padding: 3.5rem 0 2rem;
    }
  
    .hero-description {
      font-size: 1rem;
    }
  
    .placeholder-box {
      min-height: 220px;
    }
  
    .about-visual {
      min-height: 240px;
    }
  
    .story-card-content,
    .character-card,
    .purpose-box,
    .cta-box,
    .content-box {
      padding: 1.4rem;
    }
  
    .story-pagination {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .story-pagination-links {
      flex-wrap: wrap;
      margin-left: 0;
    }
  
    .footer-bottom {
      flex-direction: column;
    }
  }
