:root {
  --cream: #f7f0e4;
  --paper: #fffaf4;
  --ink: #201735;
  --muted: #665f70;
  --purple: #3b246b;
  --olive: #85882d;
  --orange: #ef4f16;
  --gold: #f5a716;
  --line: rgba(59, 36, 107, .14);
  --shadow: 0 28px 80px rgba(32, 23, 53, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER + DROPDOWN — czysta wersja */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 244, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  overflow: visible;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #2b2339;
  font-weight: 650;
  font-size: .96rem;
  overflow: visible;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 34px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover,
.dropdown.is-open > .nav-link {
  color: var(--orange);
}

.dropdown {
  position: relative;
  overflow: visible;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: -18px;
  min-width: 238px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dropdown.is-open .dropdown-menu,
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(133, 136, 45, .12);
  color: var(--purple);
}

.langs {
  display: flex;
  gap: 8px;
}

.langs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .78rem;
  color: var(--muted);
}

.langs a.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 1.25rem;
}

/* HERO — bez animacji, czyste zdjęcie */
.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247,240,228,.98) 0%, rgba(247,240,228,.94) 34%, rgba(247,240,228,.62) 57%, rgba(247,240,228,.14) 100%),
    url("../images/mokykla-pastatas.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(255,250,244,.94), transparent 38%),
    linear-gradient(90deg, rgba(247,240,228,.95), rgba(247,240,228,.32), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 115px 0 110px;
  max-width: 1180px;
}
.hero-content h1 {
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 900;
  letter-spacing: .16em;
  font-size: .82rem;
}

.mark {
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin: 22px 0 30px;
  position: relative;
}
.mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5.5px;
  width: 13px;
  height: 13px;
  background: var(--orange);
  transform: rotate(45deg);
}

h1, h2, h3 {
  color: var(--purple);
  margin-top: 0;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: .93;
  letter-spacing: -.055em;
  margin-bottom: 28px;
}

.hero p {
  font-size: 1.18rem;
  max-width: 520px;
  color: #2b2339;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 15px 24px;
  background: var(--olive);
  color: #fff;
  border-radius: 2px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .84rem;
}
.button:hover { background: var(--purple); }

.section {
  padding: 86px 0;
  position: relative;
  overflow: hidden;
}

.values {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value {
  padding: 22px 34px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: 0; }

.icon-circle {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--olive);
  font-size: 2.2rem;
}
.value:nth-child(even) .icon-circle { color: var(--orange); }

.value h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.42rem;
  margin-bottom: 8px;
}
.value p { color: var(--muted); margin: 0; }

.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1;
  margin-bottom: 18px;
}

.about p { color: #2b2339; font-size: 1.06rem; }

/* Animacje w sekcjach */
.motion-card {
  background: var(--paper);
  padding: 14px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.motion-card video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  opacity: .95;
}

.motion-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, transparent, rgba(59,36,107,.12));
  pointer-events: none;
}

.darzelis {
  background: var(--cream);
}

.darzelis-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 42px;
  align-items: center;
}

.kindergarten-motion {
  min-height: 330px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.kindergarten-motion video {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.news {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 420px;
  height: 420px;
  background: url("../images/simbolis-konturai.png") center / contain no-repeat;
  opacity: .06;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}
.section-head p { max-width: 480px; color: var(--muted); }

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

.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 38px rgba(32, 23, 53, .05);
}
.card time, .label {
  color: var(--orange);
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card h3 { margin: 12px 0 10px; font-size: 1.22rem; }
.card p { color: var(--muted); margin: 0; }

.events-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 28px;
}

.events-panel {
  background: var(--purple);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.events-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}
.events-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 23, 53, .48);
}
.events-panel > div {
  position: relative;
  z-index: 2;
}
.events-panel h2 { color: #fff; }
.events-panel p { color: rgba(255,255,255,.78); }

.event-list { display: grid; gap: 13px; }
.event {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px;
}
.date {
  background: rgba(133,136,45,.14);
  color: var(--olive);
  border-radius: 16px;
  text-align: center;
  padding: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.date strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}
.event h3 { margin: 0 0 3px; }
.event p { margin: 0; color: var(--muted); }

.contact-band {
  background: var(--purple);
  color: #fff;
}
.contact-band h2 { color: #fff; }
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-info div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 22px;
}
.contact-info strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}
.contact-info p {
  margin: 0;
  color: rgba(255,255,255,.82);
}

.page-hero {
  padding: 72px 0 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.content-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  margin: 46px auto 80px;
}

.document-list { display: grid; gap: 14px; }
.document-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  min-height: 230px;
  border-radius: 18px;
  background: rgba(133,136,45,.14);
  display: grid;
  place-items: center;
  color: var(--olive);
  border: 1px dashed rgba(133,136,45,.55);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.footer {
  background: #eee4d5;
  border-top: 1px solid var(--line);
  padding: 58px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr .8fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-brand img { width: 70px; }
.footer-brand strong {
  color: var(--purple);
  font-weight: 900;
  line-height: 1.2;
}
.footer a, .footer p { color: #40394b; }
.footer-links { display: grid; gap: 8px; }
.copyright {
  text-align: center;
  margin-top: 36px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 78px;
  }
  .brand img {
    width: 100px;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    gap: 8px;
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    padding: 8px 0;
  }
  .dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    min-width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    margin-top: 4px;
    background: rgba(133,136,45,.08);
    width: 100%;
  }
  .dropdown.is-open .dropdown-menu {
    display: block;
  }
  .hero {
    min-height: auto;
    background:
      linear-gradient(rgba(247,240,228,.88), rgba(247,240,228,.94)),
      url("../images/mokykla-pastatas.png") center / cover no-repeat;
  }
  .hero-content {
    padding: 82px 0;
  }
  .values-grid,
  .about-grid,
  .cards,
  .darzelis-grid,
  .events-grid,
  .footer-grid,
  .contact-grid,
  .gallery-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }
  .value {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .section-head {
    display: block;
  }
  h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }
}