/* =============================================
   PRZEDSZKOLE BLISKO DZIECKA I NATURY
   Główny arkusz stylów
   ============================================= */

@import url('https://fonts.cdnfonts.com/css/sensei');
@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;600;700&display=swap');

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

:root {
  --teal:        #45C4CB;
  --teal-btn:    #3AACB3;
  --teal-dark:   #2A9D8F;
  --green-dark:  #2D6A4F;
  --blue-footer: #5ABCD8;
  --yellow:      #F5A623;
  --pink:        #F8BBD0;
  --pink-btn:    #F48FB1;
  --text:        #444;
  --text-light:  #777;
  --white:       #fff;
  --font-h: 'Sensei', cursive;
  --font-b: 'Catamaran', sans-serif;
  --nav-h: 76px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   TYPO
   ============================================= */

h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; }

.section-title          { font-size: 2.6rem; color: var(--teal); margin-bottom: 1rem; }
.section-title.pink     { color: var(--pink-btn); }
.section-title.blue     { color: #87CEEB; }
.section-title.green    { color: var(--teal-dark); }

/* Privacy policy body headings retain clear emphasis. */
.privacy-policy h3 {
  font-family: var(--font-b) !important;
  font-weight: 700;
}

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: var(--white);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--nav-h);
}

.navbar-wave-bottom {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 32px;
  z-index: 899;
  pointer-events: none;
  line-height: 0;
  overflow: hidden;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}

.navbar-wave-bottom svg {
  position: relative;
  left: 50%;
  width: max(100%, 1440px);
  height: 100%;
  display: block;
  transform: translateX(-50%);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.navbar-brand img { height: 52px; width: auto; }

.brand-text { line-height: 1.1; }
.brand-text .top    { font-family: var(--font-h); font-weight: 800; font-size: .6rem; color: #999; letter-spacing: .12em; text-transform: uppercase; }
.brand-text .bottom { font-family: var(--font-h); font-weight: 700; font-size: .6rem; color: #999; letter-spacing: .06em; text-transform: uppercase; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem .65rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: color .2s;
}

.nav-link:hover  { color: var(--teal); }
.nav-link.active { color: var(--teal); }

/* dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 210px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  padding: .75rem 0 .5rem;
  z-index: 99;
}

.nav-item.dropdown:hover .dropdown-menu { display: block; }

.dropdown-item {
  display: block;
  padding: .45rem 1.1rem;
  font-size: .83rem;
  color: var(--text);
  transition: background .15s, color .15s;
}

.dropdown-item:hover { background: #f5f5f5; color: var(--teal); }

/* social icons in navbar */
.navbar-social {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-shrink: 0;
}

.navbar-social a {
  display: block;
  width: 32px;
  height: 32px;
  background: url('../materialy/grupy/facebook_icon.png') center / contain no-repeat;
  font-size: 0;
  transition: opacity .2s, transform .2s;
}

.navbar-social a:hover { opacity: .82; transform: scale(1.06); }
.navbar-social a.insta { background-image: url('../materialy/grupy/instagram_icon.png'); }
.navbar-social a i { display: none; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1;
  padding: .25rem;
}

/* =============================================
   FLOATING SOCIAL SIDEBAR
   ============================================= */

.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
}

.social-sidebar a {
  writing-mode: vertical-rl;
  background: #1877F2;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .85rem .45rem;
  transition: opacity .2s;
}

.social-sidebar a:hover { opacity: .88; }
.social-sidebar a.insta { background: linear-gradient(180deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* =============================================
   HERO
   ============================================= */

.hero {
  margin-top: var(--nav-h);
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #d4eeec;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2.5rem 6%;
}

/* organic blob shape */
.hero-blob {
  position: relative;
  z-index: 2;
  padding: 3rem 3.5rem;
  max-width: 450px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

.hero-blob-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 580px;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.hero-blob h1,
.hero-blob h2 {
  position: relative;
  z-index: 2;
}

.hero-fox {
  display: block;
  width: 75px;
  margin: 0.5rem auto 0;
  position: relative;
  z-index: 2;
  transform: scaleX(-1);
}

.hero-blob h1 {
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1.3;
}

.hero-blob.white h1  { color: #52B4D3; font-size: 3.4rem; line-height: 1.1; }
.hero-blob.white h2  { color: #1B46AD; font-size: 1.45rem; font-weight: 600; margin-top: 1rem; display: block; }

.hero-blob.white {
  max-width: 576px;
  min-height: 480px;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translate(88px, -86px);
}

.hero-blob.white .hero-blob-bg {
  height: 576px;
  width: 584px;
}

.hero-blob.left { align-self: flex-start; margin-top: 2rem; }

/* KONTAKT hero – ilustrowany green-blob w rogu bannera */
.hero-blob.kontakt {
  width: 480px;
  max-width: 100%;
  min-height: 390px;
  padding: 3.5rem 3rem 5rem;
  justify-content: flex-start;
}
.hero-blob.kontakt .hero-blob-bg {
  width: 620px;
  height: 780px;
  object-fit: fill;
}
.hero-blob.kontakt h1 {
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1.25;
  max-width: 300px;
}

/* Zajęcia dodatkowe – larger pink shape to frame the longer hero heading. */
.hero--activities .hero-img { object-position: center center; }

.hero-blob.pink {
  width: 560px;
  max-width: 46vw;
  min-height: 460px;
  padding: 3rem 4.5rem;
}

.hero-blob.pink .hero-blob-bg {
  left: 48%;
  top: 53%;
  width: 1430px;
  height: 620px;
  max-width: none;
}

.hero-blob.pink h1 {
  max-width: 380px;
  line-height: 1.25;
}

/* left-aligned hero content */
.hero-overlay.left { justify-content: flex-start; padding-left: 6%; }

/* wavy bottom border */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.hero-wave svg {
  position: relative;
  left: 50%;
  width: max(100%, 1440px);
  height: 32px;
  display: block;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .hero-wave svg { height: 20px; }
  .footer-wave-wrap svg { height: 20px; }

  .hero-blob.kontakt .hero-blob-bg { width: 400px; height: 480px; }
  .hero-blob.pink { width: 420px; max-width: 60vw; min-height: 340px; padding: 2.5rem 3rem; }
  .hero-blob.pink .hero-blob-bg { left: 42%; top: 50%; width: 820px; height: 580px; }
}

/* =============================================
   NASZE GRUPY – HERO
   ============================================= */

.groups-hero {
  margin-top: var(--nav-h);
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #c8e6c9;
}

.groups-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.groups-hero__blob {
  position: absolute;
  z-index: 2;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 3rem;
}

.groups-hero__blob-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: scale(1.18);
  z-index: 0;
  pointer-events: none;
}

.groups-hero__title {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transform: translateX(50px);
  color: #fff;
  font-family: var(--font-h);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

/* =============================================
   WAVY SECTION DIVIDERS
   ============================================= */

.wave { line-height: 0; overflow: hidden; }
.wave svg { display: block; width: 100%; }

/* =============================================
   COMMON SECTION LAYOUT
   ============================================= */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5% 0.5rem;
}

.section-full { padding: 4rem 5%; }

/* two-column content row */
.row-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
}

.row-content.reverse { flex-direction: row-reverse; }
.row-content:last-child { margin-bottom: 0; }

.col-text { flex: 1; padding-top: 25px; }
.col-text p { margin-bottom: 1rem; font-size: .95rem; }
.col-text p:last-child { margin-bottom: 0; }

.col-img { flex: 0 0 260px; }

#o-nas .col-img,
#adaptacja .col-img { flex: 0 0 430px; display: flex; flex-direction: column; align-items: center; }
.col-img img,
.img-circle {
  width: 240px;
  height: 240px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.img-illustration,
.col-img .img-illustration {
  width: 300px;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.photo-blob {
  width: 430px;
  height: 540px;
  object-fit: cover;
  display: block;
}

.photo-blob-wrap {
  position: relative;
  display: inline-block;
}

.photo-blob-wrap .section-title--xl {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title--xl { font-size: 5.5rem; }

.hero-blob--bottom { justify-content: flex-end; padding-top: 5.5rem; }

#o-nas .row-content { align-items: flex-start; }
#o-nas { scroll-margin-top: calc(var(--nav-h) + 32px); }
#adaptacja .row-content { align-items: flex-start; }
#adaptacja .col-img { padding-top: 20px; }

/* placeholder circles when image is missing */
.img-placeholder {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto;
  background: #e0f7fa;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: .8rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,.18);
}

.btn-teal  { background: var(--teal-btn); color: var(--white); }
.btn-pink  { background: var(--pink-btn); color: var(--white); }
.btn-green { background: var(--teal-dark); color: var(--white); }
.btn-sm    { padding: .55rem 1.6rem; font-size: .9rem; }
.btn-lg    { padding: 1.2rem 3.2rem; font-size: 1.3rem; }

.btn-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

/* =============================================
   REVIEWS CAROUSEL
   ============================================= */

.reviews-section {
  padding: 3.5rem 5% 4rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f0fafa 100%);
}

.reviews-title {
  font-family: var(--font-h);
  font-size: 2.5rem;
  color: var(--teal);
  margin-bottom: .5rem;
}

.reviews-summary {
  font-size: .95rem;
  color: var(--text-light);
  margin-bottom: 2.25rem;
}

.reviews-stars-row {
  color: var(--yellow);
  font-size: 1.15rem;
  letter-spacing: .05em;
  vertical-align: middle;
  margin-right: .3rem;
}

.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1060px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 calc(33.333% - .85rem);
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.4rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(69,196,203,.10);
  border: 1.5px solid rgba(69,196,203,.14);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.review-stars {
  color: var(--yellow);
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.review-text {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-text.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.review-read-more {
  font-size: .8rem;
  color: var(--teal);
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-b);
  align-self: flex-start;
  text-decoration: none;
}

a.review-read-more:hover { text-decoration: underline; }

.review-footer {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(69,196,203,.18);
}

.review-author {
  font-weight: 700;
  font-size: .88rem;
  color: var(--teal-dark);
}

.review-date {
  font-size: .78rem;
  color: var(--text-light);
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: #4285F4;
  font-weight: 600;
  margin-top: .2rem;
}

.review-source-g {
  font-weight: 900;
  font-size: .95rem;
  background: linear-gradient(135deg,#4285F4,#EA4335,#FBBC05,#34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(69,196,203,.35);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}

.carousel-btn:hover { border-color: var(--teal); background: #f0fafa; }
.carousel-btn:disabled { opacity: .35; cursor: default; }

.reviews-cta {
  margin-top: 2.25rem;
}

/* =============================================
   TEAM – GRID LAYOUT
   ============================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1rem;
  padding: 2rem 0;
}

.team-card { text-align: center; }

.team-card img,
.team-card .img-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
}

.team-card-name { font-weight: 700; font-size: .9rem; margin-bottom: .15rem; }
.team-card-role { font-size: .8rem; color: var(--teal); }

/* =============================================
   TEAM – DETAILED LAYOUT (foto + opis)
   ============================================= */

.team-detailed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  padding: 2rem 0;
}

.team-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.team-detail-item img,
.team-detail-item .img-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-detail-item img.team-photo-trigger {
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}

.team-detail-item img.team-photo-trigger:hover,
.team-detail-item img.team-photo-trigger:focus-visible {
  transform: scale(1.07);
  box-shadow: 0 0 0 4px rgba(69, 196, 203, .3);
  outline: none;
}

body.team-photo-modal-open { overflow: hidden; }

.team-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(22, 49, 56, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.team-photo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.team-photo-modal__dialog {
  position: relative;
  width: min(390px, 86vw);
}

.team-photo-modal__image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .3);
}

.team-photo-modal__close {
  position: absolute;
  top: -.75rem;
  right: -.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}

.team-photo-modal__close:hover,
.team-photo-modal__close:focus-visible { background: var(--teal); color: var(--white); }

.team-detail-info h3 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  margin-bottom: .4rem;
}

.team-detail-info p { font-size: .875rem; color: var(--text-light); line-height: 1.6; }
.team-detail-info p + p { margin-top: .6rem; }

.team-description {
  position: relative;
  max-height: 7rem;
  overflow: hidden;
}

.team-description::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.5rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
}

.team-description.is-expanded { max-height: none; }
.team-description.is-expanded::after { display: none; }

.team-description-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-btn);
  font: 700 .85rem/1.4 var(--font-b);
  cursor: pointer;
}

.team-description-toggle::after {
  content: '↓';
  font-size: 1rem;
  transition: transform .2s ease;
}

.team-description-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.team-description-toggle:hover,
.team-description-toggle:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* horizontal rule between detail items */
.team-divider { border: none; border-top: 1px solid rgba(69,196,203,.3); margin: 1rem 0; }

/* =============================================
   NASZE GRUPY – TABS
   ============================================= */

.groups-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 5% 2.5rem;
  font-size: 1.45rem;
  font-family: var(--font-h);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.5;
}

.tabs-bar {
  background: #80cbc4;
}

.tabs-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-btn {
  flex: 1;
  padding: 1.25rem .5rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.tab-btn:hover,
.tab-btn.active { background: rgba(0,0,0,.18); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content .row-content {
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.tab-content .col-img {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.group-section-title {
  font-family: var(--font-h);
  font-size: clamp(3.6rem, 4.6vw, 5rem);
  color: #00b4d8;
  font-weight: 700;
  line-height: 1.05;
}

.group-section-subtitle {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  color: #00b4d8;
  margin-top: .25rem;
}

.group-label {
  width: 210px;
  margin: 0 0 .1rem;
  text-align: left;
}

.group-label .group-section-subtitle { margin-bottom: 0; }

#lesna .group-section-title,
#lesna .group-section-subtitle { color: #00b7df; }

#integracyjna .group-section-title,
#integracyjna .group-section-subtitle { color: #7ecce5; }

#montessori .group-section-title,
#montessori .group-section-subtitle { color: #40ad6e; }

#maluszkow .group-section-title,
#maluszkow .group-section-subtitle { color: #91cd6a; }

/* Leśna i Integracyjna use the same organic photo treatment as the PNG cutouts. */
#lesna .img-circle,
#integracyjna .img-circle {
  clip-path: url(#blob-groups);
}

#lesna .img-circle,
#integracyjna .img-circle,
#montessori .img-circle,
#maluszkow .img-circle {
  width: 210px;
  height: 210px;
}

/* =============================================
   ZAJĘCIA DODATKOWE
   ============================================= */

.activities-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem 4rem;
  margin: 1.5rem 0 3rem;
}

.activities-index a {
  font-size: 1rem;
  color: var(--text);
  padding: .25rem 0;
  transition: color .2s;
}

.activities-index a:hover { color: var(--teal); }

.activity-entry {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(69,196,203,.25);
}

.activity-entry:last-child { border-bottom: none; }

.activity-title {
  font-family: var(--font-h);
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin-bottom: .75rem;
}

/* =============================================
   KONTAKT
   ============================================= */

.contact-bar {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 1.25rem 5%;
  font-family: var(--font-b);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

.contact-intro {
  max-width: 800px;
  margin: 3rem auto 2rem;
  padding: 0 5%;
  text-align: center;
}

.contact-intro p {
  font-family: var(--font-h);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.5;
}

.contact-bar a { color: var(--white); }

.map-wrap {
  width: 100%;
  height: 480px;
  overflow: hidden;
  position: relative;
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-img { width: 100%; height: auto; display: block; object-fit: cover; }

.contact-form-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.contact-form-title {
  font-family: var(--font-h);
  font-size: 2.4rem;
  color: var(--teal);
  margin-bottom: 2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group { text-align: left; margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .3rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.form-control:focus { border-color: var(--teal); }

textarea.form-control { resize: vertical; min-height: 160px; }

.rodo-section {
  padding: 3rem 5%;
  max-width: 900px;
  margin: 0 auto;
}

.rodo-title {
  font-family: var(--font-h);
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
  text-align: center;
}

.rodo-section p { font-size: .875rem; margin-bottom: .6rem; }

/* =============================================
   FOOTER
   ============================================= */

.footer-wave-wrap {
  line-height: 0;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  margin-bottom: -1px;
}

.footer-wave-wrap svg {
  position: relative;
  left: 50%;
  width: max(100%, 1440px);
  height: 32px;
  display: block;
  transform: translateX(-50%);
}

.footer-fox {
  position: absolute;
  bottom: -70px;
  right: 20%;
  height: 210px;
  width: auto;
  display: block;
  pointer-events: none;
  z-index: 10;
}

.footer {
  background: var(--teal);
  color: var(--white);
  padding: 2.5rem 5%;
}

.footer.green  { background: var(--green-dark); }
.footer.blue   { background: var(--blue-footer); }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.footer-shortcuts h3 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: .4rem 2.5rem;
}

.shortcuts-grid a {
  font-size: .83rem;
  color: var(--white);
  opacity: .9;
  transition: opacity .2s;
}

.shortcuts-grid a:hover { opacity: 1; }

.footer-contact { margin-left: auto; text-align: right; }

.footer-contact .phone {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.footer-contact a,
.footer-contact p { font-size: .85rem; color: var(--white); display: block; margin-bottom: .25rem; }

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
  justify-content: flex-end;
}

.footer-social a {
  color: var(--white);
  font-size: 1.45rem;
  transition: opacity .2s;
}

.footer-social a:hover { opacity: .75; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .navbar { padding: 0 1.5rem; }
  .nav-link { padding: .5rem .5rem; font-size: .75rem; }

  .tab-content .row-content,
  .tab-content .row-content.reverse {
    flex-direction: column-reverse;
  }

  .tab-content .col-text,
  .tab-content .col-img {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .navbar-nav {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
  }

  .navbar-nav.open { display: flex; }

  .nav-link { font-size: .95rem; padding: .65rem 0; }

  .nav-item.dropdown .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }

  .nav-item.dropdown.open .dropdown-menu { display: block; }

  .nav-toggle { display: block; }

  .hero { height: 360px; }
  .hero-blob h1 { font-size: 1.25rem; }
  .hero-blob.white { min-height: 415px; }
  .hero-blob.white .hero-blob-bg { height: 415px; width: 421px; }

  .row-content,
  .row-content.reverse { flex-direction: column; gap: 0.5rem; margin-bottom: 2.5rem; }
  .row-content:last-of-type { margin-bottom: 0; }
  #idea-content .row-content,
  #idea-content .row-content.reverse { flex-direction: column-reverse; }

  .col-img { flex: none; align-items: center; width: 100%; }
  #o-nas .col-img, #adaptacja .col-img { flex: none; width: 100%; }
  .col-img img, .img-circle, .photo-blob { margin: 0 auto; }
  .row-content { align-items: center; }
  .photo-blob-wrap { text-align: center; margin: 0 auto; }

  .team-grid { grid-template-columns: repeat(3, 1fr); }

  .team-detailed { grid-template-columns: 1fr; }

  .shortcuts-grid { grid-template-columns: repeat(2, auto); }

  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-contact { margin-left: 0; text-align: left; }
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .tab-btn { font-size: 1rem; padding: .9rem .3rem; }

  .activities-index { grid-template-columns: 1fr; }

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

  .review-card { flex: 0 0 100%; min-height: unset; }

  .hero-overlay { padding: 1.5rem 5%; }
  .hero-blob { max-width: 300px; padding: 3.5rem 3rem 2rem; min-height: 220px; }
  .hero-blob h1 { font-size: 1rem; }
  .hero-blob h2 { font-size: .85rem; }
  .hero-blob-bg { width: 320px; height: 290px; }
  .hero-fox { width: 55px; }

  .hero-blob.kontakt { width: 300px; min-height: 270px; padding: 2.6rem 2rem 3.5rem; }
  .hero-blob.kontakt .hero-blob-bg { width: 440px; height: 580px; }
  .hero-blob.kontakt h1 { font-size: 1.05rem; max-width: 230px; }
  .hero-blob.pink { width: 300px; max-width: 100%; min-height: 260px; padding: 2.6rem 2rem; }
  .hero-blob.pink .hero-blob-bg { left: 45%; top: 50%; width: 640px; height: 460px; }
  .hero-blob.pink h1 { max-width: 250px; font-size: 1.05rem; }

  .map-wrap { height: 340px; }

  .section-title { font-size: 2rem; }
  .col-text p { font-size: .88rem; }
  .btn { font-size: .85rem; padding: .65rem 1.4rem; }

  .groups-hero { height: 380px; }
  .groups-hero__blob {
    left: 3%;
    width: 320px;
    height: 230px;
    gap: .8rem;
    padding: 1.5rem 2rem;
  }
  .groups-hero__title { font-size: 1.8rem; transform: translateX(25px); }
  .group-section-title { font-size: 2.45rem; }
  .group-section-subtitle { font-size: 1.55rem; }
}

@media (min-width: 1100px) {
  .nav-link { font-size: .95rem; }
  .col-text p { font-size: 1.05rem; }
  .section-title { font-size: 2.9rem; }
  .section-title--xl { font-size: 5.2rem; }
  .col-img img, .img-circle { width: 320px; height: 320px; }
  .col-img { flex-basis: 320px; }
  #lesna .img-circle,
  #integracyjna .img-circle,
  #montessori .img-circle,
  #maluszkow .img-circle { width: 270px; height: 270px; }
  .group-label { width: 270px; }
}

@media (min-width: 1440px) {
  .nav-link { font-size: 1.05rem; }
  .col-text p { font-size: 1.15rem; }
  .section-title { font-size: 3.2rem; }
  .section-title--xl { font-size: 5.2rem; }
  .col-img img, .img-circle { width: 400px; height: 400px; }
  .col-img { flex-basis: 400px; }
  #lesna .img-circle,
  #integracyjna .img-circle,
  #montessori .img-circle,
  #maluszkow .img-circle { width: 320px; height: 320px; }
  .group-label { width: 320px; }
}

/* =============================================
   NASZA IDEA – layout zgodny z projektem
   ============================================= */

.hero--idea .hero-img { object-position: center center; }

.hero--idea .hero-blob.white {
  width: 500px;
  min-height: 430px;
  padding: 3.5rem 4rem;
  transform: translate(20px, -15px);
}

.hero--idea .hero-blob.white .hero-blob-bg {
  width: 520px;
  height: 510px;
  max-width: none;
}

.hero--idea .hero-blob.white h1 {
  color: #08b4d1;
  font-size: 3.5rem;
}

.hero--idea .hero-blob.white h2 {
  color: #1749a5;
  font-size: 1.55rem;
  line-height: 1.28;
  margin-top: .65rem;
}

.idea-content {
  max-width: 1040px;
  padding-top: 4.5rem;
}

#idea-content .idea-row {
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  margin-bottom: 4.5rem;
}

#idea-content .idea-row .col-text {
  min-width: 0;
  padding-top: 0;
}

#idea-content .idea-row .col-text p {
  font-size: 1rem;
  line-height: 1.55;
}

.idea-feature {
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.idea-feature-title {
  color: #31ad76;
  font-family: var(--font-h);
  font-size: clamp(2.35rem, 3.4vw, 3.25rem);
  font-weight: 700;
  line-height: .98;
  margin-bottom: 1rem;
}

.idea-feature .idea-feature-art {
  width: 220px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.idea-feature .idea-feature-art--small { width: 155px; }
.idea-feature .idea-feature-art--tiny { width: 95px; }

.idea-copy {
  overflow: visible;
}

.idea-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 4rem;
  margin-top: 1rem;
}

.idea-final-title {
  color: #83ccc2;
  font-size: clamp(2.7rem, 4.4vw, 4rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.idea-final-copy p {
  font-size: 1rem;
  line-height: 1.58;
}

.idea-final-art img {
  width: 280px;
  height: auto;
  margin: 0 auto;
}

.idea-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.25rem;
  margin-top: 4rem;
}

.idea-gallery img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero--idea .hero-blob.white {
    width: 380px;
    min-height: 320px;
    padding: 2.5rem 3rem;
    transform: translate(-10px, -5px);
  }

  .hero--idea .hero-blob.white .hero-blob-bg { width: 410px; height: 400px; }
  .hero--idea .hero-blob.white h1 { font-size: 2.65rem; }
  .hero--idea .hero-blob.white h2 { font-size: 1.2rem; }

  #idea-content .idea-row,
  #idea-content .idea-row.reverse {
    flex-direction: column-reverse;
    gap: 1.25rem;
    margin-bottom: 4rem;
  }

  .idea-feature {
    flex: none;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .idea-feature-title { margin-bottom: .75rem; }

  .idea-final {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .idea-final-art { order: -1; }
  .idea-final-art img { width: 220px; }
}

@media (max-width: 640px) {
  .hero--idea .hero-blob.white {
    width: 285px;
    min-height: 250px;
    padding: 2rem 2.25rem;
    transform: translate(-18px, 0);
  }

  .hero--idea .hero-blob.white .hero-blob-bg { width: 320px; height: 310px; }
  .hero--idea .hero-blob.white h1 { font-size: 2.1rem; }
  .hero--idea .hero-blob.white h2 { font-size: 1rem; }

  .idea-content { padding-top: 3rem; }
  .idea-feature-title { font-size: 2.2rem; }
  .idea-final-title { font-size: 2.5rem; }
  .idea-feature .idea-feature-art { width: 185px; }
  .idea-feature .idea-feature-art--small { width: 130px; }
  .idea-feature .idea-feature-art--tiny { width: 80px; }
  .idea-gallery { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
  .idea-gallery img { width: min(100%, 320px); margin: 0 auto; }
}

/* =============================================
   ZAJĘCIA DODATKOWE – layout zgodny z projektem
   ============================================= */

.activities-hero-fox {
  position: absolute;
  top: 1.25rem;
  right: 5.25rem;
  z-index: 3;
  width: 88px;
  height: auto;
  pointer-events: none;
}

.activities-content {
  max-width: 1040px;
  padding-top: 4rem;
}

.activities-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
  margin-bottom: 2.25rem;
}

.activities-main-title {
  color: #83ccc2;
  font-size: clamp(4rem, 6vw, 5.8rem);
  line-height: .95;
  margin: 0;
}

.activities-page .activities-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .3rem 2.75rem;
  margin: .6rem 0 0;
}

.activities-page .activities-index a {
  padding: 0;
  color: #4f4f4f;
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.activities-page .activities-index a:hover { color: #167c70; }

.activities-index-column {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.activities-page .activity-entry {
  position: relative;
  padding: 2.7rem 0 3.2rem;
  border-bottom: 0;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.activities-page .activity-entry:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 28%;
  bottom: 0;
  width: 220px;
  height: 2px;
  background: #3c998d;
  transform: rotate(.5deg);
  opacity: .75;
}

.activities-page .activity-entry:nth-child(even)::after {
  right: auto;
  left: 28%;
}

.activities-page .activity-entry .row-content {
  align-items: center;
  gap: clamp(3.5rem, 7vw, 6rem);
  margin: 0;
}

.activities-page .activity-entry .col-text {
  min-width: 0;
  padding-top: 0;
}

.activities-page .activity-entry .col-text p {
  font-size: 1rem;
  line-height: 1.55;
}

.activities-page .activity-entry .col-img {
  flex: 0 0 300px;
  position: relative;
}

.activities-page .activity-entry .col-img img,
.activities-page .activity-entry .img-circle {
  width: 285px;
  height: auto;
  max-height: 300px;
  margin: 0 auto;
  border-radius: 0;
  object-fit: contain;
}


.activities-page .activity-title {
  color: #167c70;
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: .8rem;
}

@media (max-width: 900px) {
  .activities-hero-fox {
    top: .75rem;
    right: 3.5rem;
    width: 68px;
  }

  .activities-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .activities-main-title { font-size: 4.4rem; }

  .activities-page .activity-entry .row-content,
  .activities-page .activity-entry .row-content.reverse {
    gap: 1.5rem;
    margin: 0;
  }

  .activities-page .activity-entry .col-img {
    flex: none;
    width: 100%;
  }

  .activities-page .activity-entry:not(:last-child)::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }
}

@media (max-width: 640px) {
  .activities-content { padding-top: 3rem; }
  .activities-main-title { font-size: 3.35rem; }

  .activities-page .activities-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem 1.25rem;
  }

  .activities-page .activities-index a { font-size: 1.05rem; }
  .activities-page .activity-entry { padding: 2.25rem 0 2.8rem; }
  .activities-page .activity-title { font-size: 1.5rem; }
  .activities-page .activity-entry .col-img img,
  .activities-page .activity-entry .img-circle { width: min(260px, 82vw); }

  .activities-hero-fox {
    top: 1.5rem;
    right: 2.5rem;
    width: 50px;
  }
}
