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

    :root {
      --sage: #5a8c6e;
      --sage-light: #7db892;
      --sage-pale: #dff0e5;
      --amber: #e8a030;
      --amber-light: #fde9b8;
      --amber-pale: #fff8ec;
      --terra: #c8604a;
      --terra-light: #f0c4ba;
      --cream: #faf7f2;
      --ink: #1e2d26;
      --ink-mid: #3d5247;
      /* Text na světlém podkladu musí mít kontrast aspoň 4,5 : 1 (WCAG AA). --sage
         zůstává pro plochy a tlačítka, na text jde tmavší --sage-ink. */
      --ink-soft: #526b5a;
      --sage-ink: #3a6a4f;
      --amber-ink: #8a5a0a;
      --white: #ffffff;
      --radius: 20px;
      --radius-sm: 12px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--ink);
      overflow-x: hidden;
    }

    /* ─── NAV ─── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 48px;
      background: rgba(250, 247, 242, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(90, 140, 110, 0.12);
      animation: slideDown 0.6s ease both;
    }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-20px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .nav-logo-icon {
      width: 48px; height: 48px;
      object-fit: contain;
    }

    .nav-logo-text {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: 1.1rem;
      color: var(--ink);
      line-height: 1.1;
    }

    .nav-logo-sub {
      font-size: 0.72rem;
      font-weight: 400;
      color: var(--ink-soft);
      display: block;
    }

    .nav-links {
      display: flex;
      gap: 6px;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--ink-mid);
      padding: 8px 16px;
      border-radius: 100px;
      transition: background 0.2s, color 0.2s;
    }

    .nav-links a:hover {
      background: var(--sage-pale);
      color: var(--sage-ink);
    }

    .nav-cta {
      background: var(--terra) !important;
      color: var(--white) !important;
      font-weight: 600 !important;
    }

    .nav-cta:hover {
      background: #b5503c !important;
    }

    /* Hamburger: na širokých displejích schovaný, na mobilu jediná cesta k menu. */
    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 10px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      cursor: pointer;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
    }
    .nav-toggle span {
      display: block;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
    nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .classes-intro { max-width: 320px; text-align: right; }

    /* ─── HERO ─── */
    /* Odkaz „Přeskočit na obsah“: skrytý, dokud na něj nepřijde fokus z klávesnice. */
    .skip-link {
      position: absolute;
      left: 12px;
      top: -60px;
      z-index: 1000;
      padding: 10px 16px;
      background: var(--ink);
      color: var(--white);
      border-radius: var(--radius-sm);
      font-weight: 700;
      text-decoration: none;
      transition: top 0.15s ease;
    }

    .skip-link:focus {
      top: 12px;
      outline: 3px solid var(--amber);
      outline-offset: 2px;
    }

    main:focus { outline: none; }

    /* Viditelný fokus z klávesnice na celém webu (na zeleno-krémové paletě
       je jantarový rámeček vidět všude); myš ho nedostane. */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
      outline: 3px solid var(--amber);
      outline-offset: 3px;
      border-radius: 4px;
    }

    .footer-links--povinne a { font-size: 0.85rem; }

    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 120px 48px 80px;
      position: relative;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background-image: url('../hero.webp?v=20260826b');
      background-size: cover;
      background-position: center;
      transform: scale(1.03);
      animation: heroZoom 20s ease-in-out infinite alternate;
    }

    @keyframes heroZoom {
      from { transform: scale(1.0); }
      to   { transform: scale(1.06); }
    }

    /* Dark gradient overlay for readability */
    .hero-bg::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(105deg,
          rgba(10, 25, 18, 0.72) 0%,
          rgba(10, 25, 18, 0.55) 50%,
          rgba(10, 25, 18, 0.25) 100%);
    }

    /* Subtle dot texture on top */
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
      background-size: 28px 28px;
    }

    /* Emblém loga vlevo vedle nadpisu; na rozostřeném pozadí ho drží jemný stín. */
    .hero-logo {
      position: relative;
      z-index: 1;
      flex-shrink: 0;
      width: clamp(200px, 22vw, 330px);
      height: auto;
      margin-right: 44px;
      filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
      animation: fadeUp 0.7s ease 0.05s both;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 640px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.95);
      border: 1.5px solid rgba(255,255,255,0.3);
      backdrop-filter: blur(8px);
      padding: 8px 16px;
      border-radius: 100px;
      font-size: 0.82rem;
      font-weight: 600;
      margin-bottom: 28px;
      animation: fadeUp 0.7s ease 0.1s both;
    }

    .hero-badge-dot {
      width: 7px; height: 7px;
      background: #7ee8a2;
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.8); }
    }

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

    .hero h1 {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: clamp(3rem, 5vw, 4.8rem);
      line-height: 1.0;
      color: var(--white);
      text-shadow: 0 2px 20px rgba(0,0,0,0.3);
      margin-bottom: 24px;
      animation: fadeUp 0.7s ease 0.2s both;
    }

    .hero h1 em {
      font-style: normal;
      color: #7ee8a2;
      position: relative;
      display: inline-block;
    }

    .hero h1 em::after {
      content: '';
      position: absolute;
      bottom: 4px;
      left: 0; right: 0;
      height: 8px;
      background: var(--amber);
      opacity: 0.35;
      border-radius: 4px;
      z-index: -1;
    }

    .hero-desc {
      font-size: 1.1rem;
      line-height: 1.65;
      color: rgba(255,255,255,0.85);
      margin-bottom: 40px;
      max-width: 520px;
      animation: fadeUp 0.7s ease 0.3s both;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      animation: fadeUp 0.7s ease 0.4s both;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      border-radius: 100px;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      transition: transform 0.2s, box-shadow 0.2s;
    }

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

    .btn-primary {
      background: var(--sage);
      color: var(--white);
      box-shadow: 0 4px 20px rgba(90,140,110,0.35);
    }

    .btn-primary:hover {
      box-shadow: 0 8px 28px rgba(90,140,110,0.45);
    }

    .btn-secondary {
      background: var(--white);
      color: var(--ink-mid);
      border: 1.5px solid rgba(30,45,38,0.12);
    }

    .btn-secondary:hover {
      background: var(--cream);
      border-color: rgba(30,45,38,0.2);
    }

    .btn-terra {
      background: var(--terra);
      color: var(--white);
      box-shadow: 0 4px 20px rgba(200,96,74,0.35);
    }

    .btn-terra:hover {
      box-shadow: 0 8px 28px rgba(200,96,74,0.45);
    }

    .hero-stats {
      position: relative;
      z-index: 1;
      margin-left: auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
      animation: fadeUp 0.7s ease 0.5s both;
    }

    .stat-card {
      background: rgba(255,255,255,0.14);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: var(--radius);
      padding: 24px 28px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
      min-width: 200px;
      transition: transform 0.3s;
    }

    .stat-card:hover {
      transform: translateY(-4px);
    }

    .stat-card:nth-child(2) {
      margin-left: 32px;
    }

    .stat-num {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: 2.5rem;
      line-height: 1;
      color: #7ee8a2;
    }

    .stat-label {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.75);
      margin-top: 4px;
    }

    /* ─── SECTION SHARED ─── */
    section {
      padding: 96px 48px;
    }

    .section-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--amber-ink);
      margin-bottom: 16px;
    }

    .section-tag::before {
      content: '';
      display: block;
      width: 20px;
      height: 2px;
      background: var(--amber);
      border-radius: 2px;
    }

    .section-title {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: clamp(2rem, 3.5vw, 3rem);
      line-height: 1.1;
      color: var(--ink);
      margin-bottom: 16px;
    }

    .section-subtitle {
      font-size: 1rem;
      line-height: 1.65;
      color: var(--ink-soft);
      max-width: 540px;
    }

    /* ─── ABOUT ─── */
    .about {
      background: var(--white);
    }

    .about-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .about-visual {
      position: relative;
    }

    .about-map-card {
      background: var(--sage-pale);
      border-radius: var(--radius);
      padding: 36px;
      position: relative;
      overflow: hidden;
    }

    .about-map-pattern {
      position: absolute;
      inset: 0;
      background-image:
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(90,140,110,0.07) 30px, rgba(90,140,110,0.07) 31px),
        repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(90,140,110,0.07) 30px, rgba(90,140,110,0.07) 31px);
      border-radius: var(--radius);
    }

    .about-map-content {
      position: relative;
      z-index: 1;
    }

    .location-marker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--white);
      border-radius: 100px;
      padding: 10px 18px;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--ink-mid);
      box-shadow: 0 4px 16px rgba(30,45,38,0.1);
      margin-bottom: 24px;
    }

    .pracovisite-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .pracovisite-item {
      background: var(--white);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      box-shadow: 0 2px 12px rgba(30,45,38,0.06);
    }

    .pracovisite-icon {
      width: 40px; height: 40px;
      min-width: 40px;
      background: var(--sage-pale);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    .pracovisite-name {
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--ink);
      margin-bottom: 2px;
    }

    .pracovisite-addr {
      font-size: 0.8rem;
      color: var(--ink-soft);
    }

    .pracovisite-nav {
      margin-left: auto;
      align-self: center;
      width: 40px; height: 40px;
      min-width: 40px;
      background: var(--sage-pale);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .pracovisite-nav svg { fill: var(--sage); }

    .pracovisite-nav:hover {
      background: var(--sage);
      transform: scale(1.06);
    }

    .pracovisite-nav:hover svg { fill: var(--white); }

    .about-text {
      padding-left: 16px;
    }

    .about-features {
      margin-top: 36px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .about-feature {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .feature-icon {
      width: 44px; height: 44px;
      min-width: 44px;
      background: var(--amber-pale);
      border: 1.5px solid var(--amber-light);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

    .feature-label {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--ink);
    }

    .feature-desc {
      font-size: 0.85rem;
      color: var(--ink-soft);
      margin-top: 2px;
    }

    /* ─── CLASSES ─── */
    .classes {
      background: var(--cream);
    }

    .classes-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .classes-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 52px;
      gap: 24px;
    }

    .classes-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .class-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 28px;
      cursor: pointer;
      transition: transform 0.3s, box-shadow 0.3s;
      position: relative;
      overflow: hidden;
      border: 1.5px solid transparent;
    }

    .class-card::before {
      content: '';
      position: absolute;
      top: 0; right: 0;
      width: 120px; height: 120px;
      border-radius: 50%;
      opacity: 0.08;
      transform: translate(30px, -30px);
      transition: transform 0.3s, opacity 0.3s;
    }

    .class-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 48px rgba(30,45,38,0.12);
    }

    .class-card:hover::before {
      transform: translate(20px, -20px);
      opacity: 0.14;
    }

    /* Color variants */
    .card-green  { --card-color: #5a8c6e; }
    .card-amber  { --card-color: #e8a030; }
    .card-terra  { --card-color: #c8604a; }
    .card-sky    { --card-color: #4a8cb8; }
    .card-violet { --card-color: #7c6aaa; }

    .class-card.card-green  { border-color: rgba(90,140,110,0.15); }
    .class-card.card-amber  { border-color: rgba(232,160,48,0.15); }
    .class-card.card-terra  { border-color: rgba(200,96,74,0.15); }
    .class-card.card-sky    { border-color: rgba(74,140,184,0.15); }
    .class-card.card-violet { border-color: rgba(124,106,170,0.15); }

    .class-card.card-green::before  { background: var(--card-color); }
    .class-card.card-amber::before  { background: var(--card-color); }
    .class-card.card-terra::before  { background: var(--card-color); }
    .class-card.card-sky::before    { background: var(--card-color); }
    .class-card.card-violet::before { background: var(--card-color); }

    .class-emoji {
      font-size: 2.4rem;
      margin-bottom: 14px;
      display: block;
    }

    .class-name {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: 1.25rem;
      color: var(--ink);
      margin-bottom: 6px;
    }

    .class-location {
      font-size: 0.8rem;
      color: var(--ink-soft);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .class-location svg {
      flex-shrink: 0;
    }

    .class-phone {
      margin-top: 14px;
      font-size: 0.83rem;
      color: var(--ink-mid);
      font-weight: 500;
    }

    /* ─── INFO STRIP ─── */
    .info-strip {
      background: var(--sage);
      padding: 48px;
      overflow: hidden;
      position: relative;
    }

    .info-strip::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 300px; height: 300px;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
    }

    .info-strip::after {
      content: '';
      position: absolute;
      bottom: -80px; left: 100px;
      width: 220px; height: 220px;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
    }

    .info-strip-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      position: relative;
      z-index: 1;
    }

    .info-strip-text h2 {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: 2rem;
      color: var(--white);
      margin-bottom: 8px;
    }

    .info-strip-text p {
      color: rgba(255,255,255,0.75);
      font-size: 0.95rem;
    }

    .info-strip-details {
      display: flex;
      gap: 32px;
      flex-wrap: wrap;
    }

    .strip-detail {
      display: flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,0.9);
    }

    .strip-detail-icon {
      width: 40px; height: 40px;
      background: rgba(255,255,255,0.15);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    .strip-detail-val {
      font-weight: 600;
      font-size: 0.9rem;
      display: block;
    }

    .strip-detail-lab {
      font-size: 0.75rem;
      opacity: 0.65;
      display: block;
    }

    /* ─── ZÁPIS ─── */
    .zapis {
      background: var(--white);
    }

    .zapis-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .zapis-card {
      background: var(--terra);
      border-radius: var(--radius);
      padding: 48px;
      color: var(--white);
      position: relative;
      overflow: hidden;
    }

    .zapis-card::before {
      content: '✏️';
      position: absolute;
      font-size: 120px;
      right: -20px;
      bottom: -20px;
      opacity: 0.12;
      line-height: 1;
    }

    .zapis-card h3 {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: 2rem;
      margin-bottom: 16px;
    }

    .zapis-card p {
      font-size: 0.95rem;
      line-height: 1.65;
      opacity: 0.85;
      margin-bottom: 32px;
    }

    .zapis-card .btn {
      background: var(--white);
      color: var(--terra);
    }

    .zapis-steps {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .step {
      display: flex;
      gap: 18px;
    }

    .step-num {
      width: 40px; height: 40px;
      min-width: 40px;
      background: var(--sage);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: 1rem;
      color: var(--white);
    }

    .step-title {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--ink);
      margin-bottom: 4px;
    }

    .step-desc {
      font-size: 0.85rem;
      color: var(--ink-soft);
      line-height: 1.55;
    }

    /* ─── CONTACT ─── */
    .contact {
      background: var(--cream);
    }

    .contact-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 20px;
      margin-top: 52px;
    }

    .contact-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 32px;
    }

    .contact-icon {
      width: 52px; height: 52px;
      background: var(--sage-pale);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-bottom: 20px;
    }

    .contact-card h3 {
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 12px;
    }

    .contact-line {
      font-size: 0.88rem;
      color: var(--ink-mid);
      margin-bottom: 6px;
      line-height: 1.5;
    }

    .contact-line strong {
      color: var(--ink);
    }

    .contact-link {
      color: var(--sage-ink);
      text-decoration: none;
      font-weight: 500;
    }

    .contact-link:hover {
      text-decoration: underline;
    }

    /* ─── FOOTER ─── */
    footer {
      background: var(--ink);
      color: rgba(255,255,255,0.6);
      padding: 40px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    footer a {
      color: rgba(255,255,255,0.7);
      text-decoration: none;
      font-size: 0.85rem;
    }

    footer a:hover { color: var(--white); }

    .footer-logo {
      font-family: 'Nunito', sans-serif;
      font-weight: 900;
      font-size: 1.1rem;
      color: var(--white);
    }

    .footer-links {
      display: flex;
      gap: 24px;
    }

    .footer-copy {
      font-size: 0.8rem;
    }

    /* ─── EU PROJEKTY (povinná publicita dotací) ─── */
    .eu-projects {
      background: var(--white);
      border-top: 1px solid rgba(90, 140, 110, 0.15);
      padding: 48px;
    }

    .eu-projects-inner {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
    }

    .eu-project p {
      font-size: 0.9rem;
      color: var(--ink-mid);
      margin-bottom: 16px;
    }

    .eu-project a {
      color: var(--sage-ink);
      font-weight: 500;
    }

    /* Loga mají bílé pozadí — na bílé sekci splynou, jen se omezí šířka. */
    .eu-project img {
      display: block;
      width: 100%;
      max-width: 480px;
      height: auto;
    }

    /* MAP IV: třetí položka by v mřížce 2 sloupců visela sama — řádek přes celou šířku,
       text vlevo, vektorové logo vpravo, oddělený linkou. */
    .eu-project-map {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
      padding-top: 32px;
      border-top: 1px solid rgba(90, 140, 110, 0.15);
    }

    .eu-project-map p { margin: 0; max-width: 620px; }

    .eu-project-map-logo { display: block; flex: 0 0 auto; }

    .eu-project-map img { width: auto; height: 60px; }

    /* ─── SCROLL ANIMATIONS ─── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 960px) {
      nav { padding: 16px 24px; }
      .nav-toggle { display: flex; }
      .nav-links { display: none; }
      nav.open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 2px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 16px 18px;
        background: var(--cream);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
      }
      nav.open .nav-links a { display: block; padding: 12px 14px; font-size: 1rem; }
      .classes-intro { max-width: none; text-align: left; }
      section { padding: 72px 24px; }
      .hero { padding: 100px 24px 60px; flex-direction: column; align-items: flex-start; }
      .hero-logo { width: 170px; margin: 0 0 24px; }
      .hero-stats { flex-direction: row; margin-left: 0; margin-top: 40px; }
      .stat-card:nth-child(2) { margin-left: 0; }
      .about-inner,
      .zapis-inner { grid-template-columns: 1fr; gap: 40px; }
      .classes-grid { grid-template-columns: repeat(2, 1fr); }
      .contact-grid { grid-template-columns: 1fr; }
      .info-strip-inner { flex-direction: column; align-items: flex-start; }
      footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
      .eu-projects { padding: 40px 24px; }
      .eu-projects-inner { grid-template-columns: 1fr; gap: 32px; }
      .eu-project-map { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 24px; }
      .eu-project-map img { height: 52px; }
      .classes-header { flex-direction: column; align-items: flex-start; }
    }

    @media (max-width: 600px) {
      .classes-grid { grid-template-columns: 1fr; }
      .hero-stats { flex-direction: column; }
    }

    /* ─── OBSAHOVÉ STRÁNKY (aktuality, dokumenty) ─── */
    .page-head {
      padding: 140px 48px 40px;
      background: var(--sage-pale);
    }
    .page-body {
      padding: 56px 48px 90px;
      background: var(--cream);
      min-height: 40vh;
    }
    .page-inner {
      max-width: 780px;
      margin: 0 auto;
    }
    .page-head .section-title { margin-top: 8px; }
    .page-head .contact-link { display: inline-block; margin-bottom: 14px; }

    .post-date {
      display: block;
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--sage-ink);
      letter-spacing: 0.02em;
      margin-bottom: 6px;
    }

    .post-item {
      padding: 26px 0;
      border-bottom: 1px solid rgba(90, 140, 110, 0.16);
    }
    .post-item:last-of-type { border-bottom: 0; }
    .post-item h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.4rem;
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 8px;
    }
    .post-item h2 a { color: var(--ink); text-decoration: none; }
    .post-item h2 a:hover { color: var(--sage-ink); }
    .post-item p { color: var(--ink-mid); margin-bottom: 10px; line-height: 1.6; }

    .prose {
      color: var(--ink-mid);
      line-height: 1.75;
      font-size: 1.03rem;
    }
    .prose a { color: var(--sage-ink); }

    /* Obsah z editoru v administraci. Globalni reset vynuloval odsazeni
       vsem prvkum, takze odstavce i seznamy je potreba nastavit tady —
       jinak text z editoru splyne do jedne hromady. */
    .prose > *:first-child { margin-top: 0; }
    .prose > *:last-child { margin-bottom: 0; }
    .prose p { margin-bottom: 1.1em; }
    .prose strong { color: var(--ink); font-weight: 700; }
    .prose em { font-style: italic; }
    .prose a:hover { color: var(--ink); }

    .prose h3 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--ink);
      margin: 1.8em 0 0.6em;
    }

    .prose ul, .prose ol {
      margin: 0 0 1.1em;
      padding-left: 1.4em;
    }
    .prose ul { list-style: disc; }
    .prose ol { list-style: decimal; }
    .prose li { margin-bottom: 0.35em; }
    .prose li::marker { color: var(--sage-ink); }
    /* Citace z editoru slouží jako zvýrazněný rámeček s klíčovým pravidlem. */
    .prose blockquote {
      margin: 0 0 1.2em;
      padding: 14px 18px;
      background: var(--sage-pale);
      border-left: 4px solid var(--amber);
      border-radius: 0 12px 12px 0;
      color: var(--ink);
    }
    .prose blockquote p { margin: 0; }
    .prose blockquote p + p { margin-top: 0.5em; }
    .prose h3 { margin: 1.6em 0 0.5em; }
    .prose h3:first-child { margin-top: 0; }

    /* Informační stránky (Pro rodiče, O nás) */
    .page-toc {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 10px;
      margin-bottom: 40px;
      font-size: 0.88rem;
    }
    .page-toc a {
      color: var(--sage-ink);
      background: var(--sage-pale);
      border-radius: 999px;
      padding: 6px 14px;
      text-decoration: none;
      font-weight: 600;
    }
    .page-toc a:hover { background: var(--sage); color: #fff; }
    /* Bloky jsou <section> kvůli sémantice, globální padding sekcí sem nepatří. */
    .info-blok { padding: 0; margin-bottom: 44px; scroll-margin-top: 110px; }
    .info-blok:last-child { margin-bottom: 0; }
    .info-blok .doc-list-inline { margin-top: 18px; }
    .table-scroll { overflow-x: auto; margin: 0 0 1.1em; }
    /* Organizace roku: dny, kdy je školka zavřená, červeně — na první pohled. */
    .info-table-zavreno td { background: #fbe9e5; color: #8f3a27; }
    .info-table-zavreno td:last-child { font-weight: 700; }
    .info-table-legenda { margin-top: 10px; font-size: 0.86rem; color: var(--ink-soft); }
    .info-table-legenda-vzorek { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border-radius: 3px; background: #fbe9e5; border: 1px solid #e2b3a8; }

    .info-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
      line-height: 1.5;
    }
    .info-table th, .info-table td {
      text-align: left;
      vertical-align: top;
      padding: 10px 12px;
      border-bottom: 1px solid rgba(90, 140, 110, 0.18);
    }
    .info-table th {
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
      color: var(--sage-ink);
      white-space: nowrap;
    }
    .info-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
    .footer-credit { font-size: 0.75rem; opacity: 0.8; width: 100%; }

    .empty-note {
      color: var(--ink-soft);
      background: var(--white);
      border: 1px dashed rgba(90, 140, 110, 0.3);
      border-radius: var(--radius-sm);
      padding: 28px;
      text-align: center;
    }

    .doc-group { margin-bottom: 38px; }
    .doc-group-title {
      font-family: 'Nunito', sans-serif;
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--sage-ink);
      margin-bottom: 12px;
    }
    .doc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .doc-list a {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--white);
      border: 1px solid rgba(90, 140, 110, 0.16);
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      text-decoration: none;
      color: var(--ink);
      transition: border-color 0.18s, transform 0.18s;
    }
    .doc-list a:hover {
      border-color: var(--sage-light);
      transform: translateX(3px);
    }
    .doc-icon { font-size: 1.2rem; flex-shrink: 0; }
    .doc-name { flex: 1; font-weight: 500; }
    .doc-size {
      font-size: 0.82rem;
      color: var(--ink-soft);
      font-variant-numeric: tabular-nums;
      flex-shrink: 0;
    }
    .doc-item { list-style: none; }
    .doc-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 14px;
      margin: 4px 0 2px 18px;
      font-size: 0.8rem;
      color: var(--ink-soft);
    }
    /* „Souvisí s aktualitou:“ drží s odkazem na jednom řádku; zalomit se smí až text odkazu. */
    .doc-meta span { white-space: nowrap; }
    /* Odkaz v poznámce je obyčejný textový odkaz, ne karta jako v .doc-list a. */
    .doc-meta a {
      display: inline;
      background: none;
      border: 0;
      border-radius: 0;
      padding: 0;
      color: var(--sage-ink);
      text-decoration: underline;
      white-space: normal;
      transition: none;
    }
    .doc-meta a:hover { transform: none; color: var(--ink); }
    .post-attachments { margin-top: 34px; }
    .post-attachments-count {
      display: inline-block;
      margin-left: 14px;
      font-size: 0.85rem;
      color: var(--ink-soft);
    }

    /* stránkování */
    .page-body nav[role="navigation"] { margin-top: 34px; }
    .page-body nav[role="navigation"] a,
    .page-body nav[role="navigation"] span { font-size: 0.92rem; }

    @media (max-width: 900px) {
      .page-head { padding: 120px 24px 32px; }
      .page-body { padding: 40px 24px 70px; }
    }

    /* ─── PORTÁL TŘÍDY ─── */
    .class-vstup {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 14px;
      padding: 8px 15px;
      border-radius: 100px;
      background: var(--sage-pale);
      color: var(--sage-ink);
      font-size: 0.88rem;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.18s, color 0.18s;
    }
    .class-vstup:hover {
      background: var(--sage);
      color: var(--white);
    }
    .class-vstup:focus-visible {
      outline: 2px solid var(--sage);
      outline-offset: 2px;
    }

    .gate {
      background: var(--white);
      border: 1px solid rgba(90, 140, 110, 0.16);
      border-radius: var(--radius);
      padding: 40px 36px;
      text-align: center;
      max-width: 520px;
      margin: 0 auto;
    }
    .gate-icon { font-size: 2rem; margin-bottom: 12px; }
    .gate h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 10px;
    }
    .gate p { color: var(--ink-mid); line-height: 1.6; }
    .gate-note {
      margin-top: 18px;
      padding: 14px;
      background: var(--amber-pale);
      border-radius: var(--radius-sm);
      font-size: 0.94rem;
    }

    .gate-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 26px;
      text-align: left;
    }
    .gate-form label { font-size: 0.88rem; font-weight: 600; color: var(--ink-mid); }
    .gate-form input {
      font-family: inherit;
      font-size: 1rem;
      padding: 13px 16px;
      border: 1px solid rgba(90, 140, 110, 0.3);
      border-radius: var(--radius-sm);
      background: var(--cream);
      color: var(--ink);
    }
    .gate-form input:focus {
      outline: 2px solid var(--sage);
      outline-offset: 1px;
      border-color: transparent;
    }
    .gate-form input[aria-invalid="true"] { border-color: var(--terra); }
    .gate-form button { margin-top: 6px; border: none; cursor: pointer; font-family: inherit; }
    .gate-error { color: var(--terra); font-size: 0.9rem; font-weight: 500; }

    .trida-head { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
    .trida-ikona { height: 64px; width: auto; object-fit: contain; flex-shrink: 0; }
    .trida-meta { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }
    .trida-blok { margin-bottom: 44px; }
    .trida-post-nadpis {
      font-family: 'Nunito', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .trida-odhlasit { margin-top: 30px; }
    .trida-odhlasit button {
      background: none;
      border: 0;
      padding: 0;
      color: var(--ink-soft);
      font-family: inherit;
      font-size: 0.9rem;
      text-decoration: underline;
      cursor: pointer;
    }
    .trida-odhlasit button:hover { color: var(--terra); }

    /* zpětný odkaz a štítek nad nadpisem patří na samostatné řádky */
    .page-head .contact-link { display: inline-block; }
    .page-head .section-tag { display: block; width: fit-content; }

    /* ─── PROVOZ TŘÍD (tabulka po pracovištích) ─── */
    .provoz-pracoviste { margin-bottom: 28px; }
    .provoz-tabulka {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
    }
    .provoz-tabulka th, .provoz-tabulka td {
      text-align: left;
      padding: 10px 12px;
      border-bottom: 1px solid rgba(90,140,110,0.18);
    }
    .provoz-tabulka thead th {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--sage-ink);
    }
    .provoz-tabulka tbody th { font-weight: 700; color: var(--ink); }
    .provoz-tabulka tbody th a { color: inherit; text-decoration: none; }
    .provoz-tabulka tbody th a:hover { color: var(--sage-ink); }
