:root {
  --navy: #0b1f44;
  --navy-2: #102d62;
  --text: #15223a;
  --muted: #5f6b7e;
  --paper: #f7f7f2;
  --white: #ffffff;
  --yellow: #f5c518;
  --shadow: 0 24px 70px rgba(11, 31, 68, 0.14);
  --radius-lg: 34px;
  --radius-md: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 31, 68, 0.08);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}
.brand img { width: 50px; height: 50px; }
.brand span { display: flex; flex-direction: column; line-height: .86; text-transform: uppercase; letter-spacing: .02em; }
.brand strong { font-size: 14px; font-weight: 600; }
.brand b { font-size: 22px; color: var(--navy); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.main-nav a:hover { color: #1462d5; }
.header-phone {
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 94px;
  background:
    radial-gradient(circle at 12% 12%, rgba(245,197,24,.18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #fff 50%, #fff9ec 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 70px;
}
.eyebrow {
  margin: 0 0 12px;
  color: #2864bc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.service-copy h2,
.contact h2,
.why-us h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.hero h1 { font-size: clamp(44px, 6.2vw, 78px); max-width: 760px; }
.hero-lead { margin: 24px 0 0; max-width: 650px; font-size: clamp(18px, 2vw, 22px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px rgba(11,31,68,.2); }
.button-secondary { background: #fff; color: var(--navy); border: 1px solid rgba(11,31,68,.16); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--navy); font-weight: 750; }
.hero-points li::before { content: "✓"; color: #1aa356; margin-right: 8px; }

.hero-gallery {
  position: relative;
  min-height: 560px;
}
.hero-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}
.hero-card-main { width: 72%; height: 70%; right: 0; top: 4%; transform: rotate(2deg); }
.hero-card-small { width: 47%; height: 42%; }
.hero-card-art { left: 0; bottom: 2%; transform: rotate(-4deg); }
.hero-card-bike { right: 3%; bottom: -3%; transform: rotate(5deg); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .45; }
.hero-blob-one { width: 180px; height: 180px; background: #53c978; right: 4%; top: 14%; }
.hero-blob-two { width: 120px; height: 120px; background: #ff7a33; left: 45%; bottom: 5%; }

.offer-overview { padding: 92px 0 108px; background: var(--paper); }
.section-heading { max-width: 770px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(36px, 4.8vw, 58px); }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; max-width: 680px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer-tile {
  min-height: 210px;
  padding: 24px;
  border-radius: 26px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(11,31,68,.12);
  transition: transform .2s ease;
}
.offer-tile:hover { transform: translateY(-4px); }
.offer-tile::after {
  content: "";
  width: 110px;
  height: 110px;
  position: absolute;
  right: -22px;
  top: -22px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.offer-tile span { position: absolute; top: 20px; left: 22px; font-weight: 900; opacity: .72; }
.offer-tile strong { font-size: 24px; line-height: 1.05; }
.offer-tile small { margin-top: 8px; font-size: 14px; opacity: .9; }
.tile-blue { background: linear-gradient(145deg, #1264d8, #0b1f44); }
.tile-lego { background: linear-gradient(145deg, #e6302b 0 38%, #155cc4 38% 70%, #f2b817 70%); }
.tile-green { background: linear-gradient(145deg, #18a64b, #087330); }
.tile-purple { background: linear-gradient(145deg, #8052a7, #33205c); }
.tile-pink { background: linear-gradient(145deg, #ed3f8b, #9c1c5f); }
.tile-orange { background: linear-gradient(145deg, #ff6a1a, #d94300); }
.tile-red { background: linear-gradient(145deg, #e31e24, #8d0e16); }
.offer-grid .offer-tile:last-child { grid-column: span 2; }

.service-section {
  --accent: #1462d5;
  --accent-dark: #0c397c;
  --soft: #eef5ff;
  padding: 110px 0;
  background: linear-gradient(135deg, var(--soft), #fff 62%);
  scroll-margin-top: 74px;
  position: relative;
  overflow: hidden;
}
.service-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .06;
  right: -180px;
  top: -160px;
}
.service-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 76px; align-items: center; position: relative; z-index: 1; }
.service-grid-reverse .service-media { order: 2; }
.service-media {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.service-media::before {
  content: "";
  position: absolute;
  inset: 34px -18px -18px 34px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  z-index: -1;
  opacity: .96;
}
.service-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 24px; }
.media-label {
  position: absolute;
  left: 30px;
  bottom: 28px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.service-copy .eyebrow { color: var(--accent-dark); }
.service-copy h2 { font-size: clamp(38px, 5vw, 60px); }
.service-copy > p:not(.eyebrow) { font-size: 18px; color: var(--muted); margin: 22px 0 0; }
.feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.feature-list span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 14px;
}
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.info-row-two { grid-template-columns: repeat(2, 1fr); }
.info-row div {
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11,31,68,.09);
}
.info-row small { display: block; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.info-row strong { color: var(--navy); font-size: 17px; line-height: 1.25; }
.section-button { background: var(--accent); color: #fff; box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 28%, transparent); }
.charity-note { padding: 20px 22px; border-radius: 20px; background: #fff; border-left: 5px solid var(--accent); margin: 26px 0; }
.charity-note p { margin: 6px 0 0; color: var(--muted); }

.theme-blue { --accent: #1462d5; --accent-dark: #0c397c; --soft: #edf5ff; }
.theme-lego { --accent: #e52225; --accent-dark: #8c1216; --soft: #fff3e9; }
.theme-green { --accent: #12a64b; --accent-dark: #087232; --soft: #ebfaef; }
.theme-purple { --accent: #7650a3; --accent-dark: #442a69; --soft: #f4effa; }
.theme-pink { --accent: #e63e88; --accent-dark: #9f1e5c; --soft: #fff0f6; }
.theme-orange { --accent: #ef5b16; --accent-dark: #a63700; --soft: #fff4e9; }
.theme-red { --accent: #dc1d25; --accent-dark: #8b0e14; --soft: #fff0f1; }

.why-us { padding: 100px 0; background: var(--navy); color: #fff; }
.section-heading-light h2 { color: #fff; }
.section-heading-light .eyebrow { color: var(--yellow); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-grid article { padding: 26px; border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.why-grid span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 900; }
.why-grid h3 { margin: 18px 0 8px; font-size: 22px; }
.why-grid p { margin: 0; color: rgba(255,255,255,.75); }

.contact { padding: 100px 0; background: #fff8e7; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.contact h2 { font-size: clamp(40px, 5vw, 62px); }
.contact p { color: var(--muted); font-size: 18px; max-width: 680px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-card { padding: 34px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); border-top: 8px solid var(--yellow); }
.contact-card h3 { margin: 0 0 18px; color: var(--navy); font-size: 28px; }
.contact-card p { font-size: 16px; margin: 18px 0; }
.contact-card a { color: var(--navy); font-weight: 850; }

.site-footer { padding: 34px 0; background: #07152f; color: rgba(255,255,255,.72); }
.footer-inner { display: flex; align-items: center; gap: 30px; }
.brand-footer { color: #fff; margin-right: auto; }
.brand-footer b { color: #fff; }
.footer-inner p { margin: 0; font-size: 14px; }

@media (max-width: 1050px) {
  .main-nav { gap: 14px; }
  .main-nav a:nth-child(2), .main-nav a:nth-child(3) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 820px; }
  .hero-gallery { min-height: 520px; max-width: 760px; width: 100%; margin-inline: auto; }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-grid .offer-tile:last-child { grid-column: span 1; }
  .service-grid { gap: 44px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .header-phone { display: none; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--navy);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: #fff; border-radius: 2px; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a, .main-nav a:nth-child(2), .main-nav a:nth-child(3) { display: block; padding: 12px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid-reverse .service-media { order: 0; }
  .service-copy { padding-top: 8px; }
  .contact-grid { gap: 38px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 70px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 12px; }
  .brand b { font-size: 19px; }
  .hero { padding: 48px 0 66px; }
  .hero h1 { font-size: 45px; }
  .hero-lead { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .hero-gallery { min-height: 390px; }
  .hero-card { border-width: 5px; border-radius: 22px; }
  .hero-card-main { width: 76%; height: 68%; }
  .hero-card-small { width: 50%; height: 40%; }
  .hero-card figcaption { font-size: 11px; bottom: 10px; left: 10px; }
  .offer-overview, .service-section, .why-us, .contact { padding: 72px 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-tile { min-height: 170px; }
  .service-grid { gap: 34px; }
  .service-media::before { inset: 24px -9px -9px 24px; }
  .service-copy h2, .contact h2 { font-size: 40px; }
  .info-row, .info-row-two { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand-footer { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* wersja z nowymi grafikami */
.service-grid { gap: 58px; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); }
.service-media { width: 100%; max-width: 640px; }
.service-grid .service-media { justify-self: start; }
.service-grid-reverse .service-media { justify-self: end; }
.service-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; max-width: 100%; border-radius: 24px; }
#programowanie .service-media img { object-position: center 48%; }
#lego .service-media img { object-position: center 48%; }
#artystyczne .service-media img { object-position: center 48%; }
#rysunek .service-media img { object-position: center 48%; }
#logopedia .service-media img { object-position: center 46%; }
#rowerowe .service-media img { object-position: center 43%; }
#charytatywne .service-media img { object-position: center 49%; }
@media (max-width: 1050px) { .service-grid { gap: 44px; } .service-media { max-width: 100%; } }
@media (max-width: 620px) { .service-media img { aspect-ratio: 4 / 3; } }


/* poprawki responsywności sekcji usług + hero caption + nowe logo */
.hero-card figcaption { z-index: 2; }
.hero-card-main figcaption { bottom: 30px; }

.service-copy {
  min-width: 0;
}
.service-copy h2 {
  text-wrap: balance;
}
.service-copy > p:not(.eyebrow) {
  max-width: 62ch;
}
.feature-list span,
.info-row div,
.section-button {
  max-width: 100%;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .service-grid-reverse .service-media {
    order: 0;
    justify-self: start;
  }
  .service-media {
    max-width: min(100%, 760px);
  }
  .service-copy {
    width: 100%;
    max-width: 100%;
  }
  .service-copy h2 {
    font-size: clamp(32px, 6.3vw, 48px);
    line-height: 1.06;
    letter-spacing: -.035em;
  }
  .service-copy > p:not(.eyebrow) {
    font-size: 17px;
  }
  .feature-list {
    gap: 8px;
  }
  .feature-list span {
    font-size: 13px;
    padding: 8px 12px;
  }
  .info-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-row.info-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-row > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero-card-main figcaption {
    bottom: 18px;
  }
  .service-section {
    padding: 64px 0;
  }
  .service-grid {
    gap: 28px;
  }
  .service-copy .eyebrow {
    font-size: 12px;
    letter-spacing: .1em;
  }
  .service-copy h2,
  .contact h2 {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.07;
    letter-spacing: -.03em;
  }
  .service-copy > p:not(.eyebrow) {
    font-size: 16px;
    margin-top: 18px;
  }
  .feature-list {
    margin: 20px 0;
    gap: 8px;
  }
  .feature-list span {
    font-size: 12px;
    padding: 7px 11px;
  }
  .info-row,
  .info-row-two {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 22px 0;
  }
  .info-row div {
    min-height: auto;
    padding: 14px;
  }
  .info-row strong {
    font-size: 16px;
  }
  .section-button {
    width: 100%;
  }
}


/* korekta położenia podpisu na głównym zdjęciu w hero */
.hero-card-main figcaption {
  top: 22px;
  bottom: auto;
  z-index: 3;
}

@media (max-width: 620px) {
  .hero-card-main figcaption {
    top: 14px;
    bottom: auto;
  }
}


/* Wszystkie 7 usług na pierwszym ekranie */
.hero {
  padding: 54px 0 72px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(520px, .98fr);
  gap: 54px;
}
.hero-gallery.hero-services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  min-height: 520px;
}
.hero-service-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(11,31,68,.16);
  background: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-service-card:hover,
.hero-service-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(11,31,68,.22);
}
.hero-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.hero-service-card:hover img,
.hero-service-card:focus-visible img {
  transform: scale(1.025);
}
.hero-service-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(4,15,34,.78));
  pointer-events: none;
}
.hero-service-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.hero-service-main {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.hero-service-main span {
  left: 16px;
  bottom: 16px;
  font-size: 17px;
}
.hero-service-lego { grid-column: 3; grid-row: 1; }
.hero-service-art { grid-column: 4; grid-row: 1; }
.hero-service-drawing { grid-column: 3; grid-row: 2; }
.hero-service-speech { grid-column: 4; grid-row: 2; }
.hero-service-bike { grid-column: 1 / span 2; grid-row: 3; }
.hero-service-charity { grid-column: 3 / span 2; grid-row: 3; }
.hero-service-bike span,
.hero-service-charity span { font-size: 14px; }

/* Menu z kompletem usług */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: #1462d5;
}
.nav-dropdown-toggle span {
  font-size: 15px;
  transition: transform .2s ease;
}
.nav-dropdown.is-open .nav-dropdown-toggle span {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 120;
  display: grid;
  min-width: 270px;
  padding: 10px;
  border: 1px solid rgba(11,31,68,.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.main-nav .nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  white-space: nowrap;
}
.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus-visible {
  background: #edf5ff;
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-gallery.hero-services {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    min-height: 560px;
  }
}

@media (max-width: 820px) {
  .main-nav .nav-dropdown {
    display: block;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
  }
  .nav-dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 8px 8px 20px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }
  .main-nav .nav-dropdown-menu a {
    padding: 9px 10px;
    font-size: 13px;
    color: #324765;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 44px 0 58px;
  }
  .hero-gallery.hero-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 132px;
    gap: 8px;
    min-height: 0;
  }
  .hero-service-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 250px;
  }
  .hero-service-lego,
  .hero-service-art,
  .hero-service-drawing,
  .hero-service-speech,
  .hero-service-bike,
  .hero-service-charity {
    grid-column: auto;
    grid-row: auto;
  }
  .hero-service-charity {
    grid-column: 1 / -1;
  }
  .hero-service-card {
    border-width: 4px;
    border-radius: 18px;
  }
  .hero-service-card span,
  .hero-service-bike span,
  .hero-service-charity span {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 11px;
  }
  .hero-service-main span {
    left: 12px;
    bottom: 12px;
    font-size: 15px;
  }
}


/* poprawka mobile: podpis głównej karty programowania nad pozostałymi kaflami */
@media (max-width: 620px) {
  .hero-service-main span {
    top: 12px;
    bottom: auto;
    left: 12px;
    right: auto;
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--navy);
    text-shadow: none;
    box-shadow: 0 8px 20px rgba(11,31,68,.16);
  }
}


/* poprawka mobile: główne zdjęcie zajmuje dwa pełne rzędy siatki */
@media (max-width: 620px) {
  .hero-gallery.hero-services {
    grid-auto-flow: row;
  }
  .hero-service-main {
    grid-column: 1 / -1;
    grid-row: span 2;
    min-height: 272px;
  }
}


/* mobile: zajęcia rowerowe i działania charytatywne obok siebie */
@media (max-width: 620px) {
  .hero-service-bike,
  .hero-service-charity {
    grid-column: auto;
  }
}


.service-gallery-block {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(11,31,68,.10);
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}
.gallery-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
}
.gallery-heading p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
}
.lightbox-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11,31,68,.10);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.video-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.video-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.video-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-play {
  position: absolute;
  left: 50%;
  top: calc(50% - 34px);
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(11,31,68,.88);
  color: #fff;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(11,31,68,.28);
}
.video-card-body {
  padding: 18px 22px 22px;
  display: grid;
  gap: 6px;
}
.video-card-body strong {
  color: var(--navy);
  font-size: 20px;
}
.video-card-body small { color: var(--muted); font-size: 14px; }
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 30px;
  background: rgba(7,14,29,.88);
}
.site-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage {
  width: min(1120px, calc(100vw - 120px));
  max-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img,
.lightbox-stage iframe {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
}
.lightbox-stage iframe {
  width: min(1120px, calc(100vw - 120px));
  aspect-ratio: 16 / 9;
  border: 0;
}
.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  margin: 0;
  width: min(900px, calc(100vw - 80px));
  text-align: center;
  color: #fff;
  font-size: 15px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 980px) {
  .lightbox-gallery { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .gallery-heading { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .lightbox-gallery { grid-template-columns: repeat(2, 1fr); }
  .site-lightbox { padding: 18px; }
  .lightbox-stage { width: calc(100vw - 36px); max-height: calc(100vh - 150px); }
  .lightbox-stage iframe { width: calc(100vw - 36px); }
  .lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 12px; right: 12px; }
}


/* GALERIE LIGHTBOX V10 */
.service-gallery-block {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(11,31,68,.12);
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 20px;
}
.gallery-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.gallery-heading p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
}
.lightbox-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  appearance: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11,31,68,.10);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.045);
  filter: brightness(.93);
}
.gallery-item:focus-visible {
  outline: 3px solid var(--accent, #1462d5);
  outline-offset: 3px;
}
.video-card {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 92px 64px;
}
.site-lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(2px);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-stage {
  width: 100%;
  min-height: 120px;
  max-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.lightbox-stage iframe {
  width: min(1120px, 100%);
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.lightbox-caption {
  margin: 0;
  min-height: 1.5em;
  color: #fff;
  text-align: center;
  font-size: 15px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  appearance: none;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.34);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lightbox-close {
  top: 20px;
  right: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 38px;
  line-height: 1;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.16); }
body.lightbox-open { overflow: hidden; }
@media (max-width: 980px) {
  .lightbox-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-heading { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .lightbox-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service-gallery-block { margin-top: 34px; padding-top: 24px; }
  .site-lightbox { padding: 62px 16px 54px; }
  .lightbox-content { max-height: calc(100vh - 96px); }
  .lightbox-stage { max-height: calc(100vh - 150px); }
  .lightbox-stage img { max-height: calc(100vh - 150px); }
  .lightbox-close { top: 10px; right: 10px; width: 44px; height: 44px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 30px; background: rgba(0,0,0,.52); }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}


/* V11 - zachowanie zdjęć głównych obok opisów i filmy YouTube w iframe */
@media (min-width: 981px) {
  .service-grid > .service-media-main {
    grid-column: 1;
    grid-row: 1;
    order: 0;
  }
  .service-grid > .service-copy-main {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }
  .service-grid.service-grid-reverse > .service-media-main {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }
  .service-grid.service-grid-reverse > .service-copy-main {
    grid-column: 1;
    grid-row: 1;
    order: 0;
  }
  .service-grid > .service-gallery-block {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 0;
  }
}

.video-grid-iframe {
  align-items: start;
}
.video-embed-card {
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.youtube-video-title {
  margin: 0;
  padding: 18px 22px 22px;
  color: var(--navy);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

@media (max-width: 980px) {
  .service-grid > .service-media-main,
  .service-grid > .service-copy-main,
  .service-grid.service-grid-reverse > .service-media-main,
  .service-grid.service-grid-reverse > .service-copy-main,
  .service-grid > .service-gallery-block {
    grid-column: 1;
    grid-row: auto;
    order: 0;
  }
}
