/* css/style.css - Główne style dla Gabinetu Pani Pedagog */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #dc2626;
  --secondary-dark: #991b1b;
  --secondary-light: #ef4444;
  --accent: #06b6d4;
  --bg: #ffffff;
  --fg: #1e293b;
  --light-bg: #f8fafc;
  --lighter-bg: #f1f5f9;
  --border: #e2e8f0;
  --shadow: rgba(37, 99, 235, 0.1);
  --shadow-hover: rgba(37, 99, 235, 0.2);
  --text-muted: #64748b;
  --gradient-start: #dbeafe;
  --gradient-end: #eff6ff;
  --gradient-secondary: #fef3c7;

  /* Mikroanimacje - timing */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: var(--fg);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation Menu */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1e40af 0%, #991b1b 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

#navbar.scrolled {
  background: linear-gradient(135deg, #1e40af 0%, #991b1b 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  position: relative;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('../img/picture/473803109_581799901510274_1383926183568746579_n.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(153, 27, 27, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 400px;
  height: 400px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-title-line1 {
  display: inline;
  color: white;
  font-size: 0.8em;
}

.hero-title-line2 {
  display: inline;
  color: var(--secondary);
  font-family: 'Schoolbell', cursive;
  letter-spacing: 0.02em;
  font-size: 0.7em;
}

.hero-title-line3 {
  display: inline;
  font-size: 0.8em;
  color: white;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero .btn {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 240px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-normal) var(--ease-bounce);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  white-space: nowrap;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow) var(--ease-smooth),
              height var(--transition-slow) var(--ease-smooth);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Main Content */
#app {
  background: var(--bg);
}

section {
  padding: 5rem 0;
  transition: background-color var(--transition-slow) var(--ease-smooth);
}

.js section {
  /* Początkowy stan dla animacji scroll (tylko gdy JS działa) */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease, background-color var(--transition-slow) var(--ease-smooth);
}

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

/* Karty - początkowy stan dla animacji */
.feature-card,
.target-card,
.class-item,
.contact-card {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .feature-card,
.js .target-card,
.js .class-item,
.js .contact-card {
  opacity: 0;
  transform: translateY(20px);
}

.js section.visible .feature-card,
.js section.visible .target-card,
.js section.visible .class-item,
.js section.visible .contact-card {
  opacity: 1;
  transform: translateY(0);
}

/* Dodanie efektu focus-visible dla lepszej dostępności */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth transitions tylko dla interaktywnych elementów - lepsza wydajność */
a,
button,
.btn,
.nav-link,
.feature-card,
.target-card,
.step,
.class-item,
.contact-card,
.gallery-item,
.stat,
.feature-icon,
.target-icon,
.class-icon,
.contact-icon {
  transition-property: transform, opacity, color, background-color, border-color, box-shadow;
  transition-duration: var(--transition-normal);
  transition-timing-function: var(--ease-smooth);
}

h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
  transition: transform var(--transition-normal) var(--ease-smooth);
}

h2:hover {
  transform: scale(1.02);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

h3 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.section-intro {
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-muted);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stats-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  transition: transform var(--transition-normal) var(--ease-bounce);
  cursor: default;
}

.stat:hover {
  transform: scale(1.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: transform var(--transition-normal) var(--ease-bounce);
}

.stat:hover .stat-number {
  animation: none;
  transform: scale(1.15);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--transition-fast) var(--ease-smooth);
}

.stat:hover .stat-label {
  color: var(--primary);
}

/* Method Section */
.method-section {
  background: linear-gradient(135deg, #fecaca 0%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}

.method-description {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.method-description > p {
  text-align: left;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.method-info-box,
.method-author-box {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  margin: 2rem 0;
  text-align: left;
}

.method-info-box h4,
.method-author-box h4 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.method-info-box p,
.method-author-box p {
  margin: 1rem 0;
  line-height: 1.8;
}

.method-info-box ul,
.method-author-box ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.method-info-box ul li,
.method-author-box ul li {
  padding: 0.5rem 0;
  line-height: 1.6;
}

.method-process {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
}

.method-process h4 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-start);
  border-radius: 12px;
  transition: all var(--transition-normal) var(--ease-smooth);
  position: relative;
  cursor: pointer;
}

.step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal) var(--ease-smooth);
}

.step:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 30px var(--shadow-hover);
  background: linear-gradient(135deg, #dbeafe 0%, #fecaca 100%);
}

.step:hover::after {
  transform: scaleX(1);
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  transition: transform var(--transition-normal) var(--ease-bounce);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step:hover .step-number {
  transform: rotate(360deg) scale(1.2);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.step h5 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast) var(--ease-smooth);
}

.step:hover h5 {
  color: var(--secondary);
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.method-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition-normal) var(--ease-smooth);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal) var(--ease-smooth);
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform var(--transition-normal) var(--ease-bounce);
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotateY(10deg);
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1.15) translateY(0); }
  50% { transform: scale(1.15) translateY(-10px); }
}

.feature-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: color var(--transition-normal) var(--ease-smooth);
}

.feature-card:hover h4 {
  color: var(--primary-dark);
}

.feature-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
  position: relative;
  z-index: 1;
}

/* Target Section */
.target-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.target-content {
  max-width: 1200px;
  margin: 0 auto;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.target-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all var(--transition-normal) var(--ease-smooth);
  border: 2px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.target-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
  transition: left var(--transition-slow) var(--ease-smooth);
}

.target-card:hover {
  border-color: var(--primary);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.target-card:hover::before {
  left: 100%;
}

.target-icon {
  font-size: 3.5rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition-normal) var(--ease-bounce);
}

.target-card:hover .target-icon {
  transform: scale(1.2) rotate(5deg);
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: scale(1.2) rotate(5deg); }
  25% { transform: scale(1.2) rotate(-5deg); }
  75% { transform: scale(1.2) rotate(5deg); }
}

.target-content-text {
  flex: 1;
}

.target-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: color var(--transition-fast) var(--ease-smooth);
}

.target-card:hover h4 {
  color: var(--secondary);
}

.target-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
}

.benefits-subsection,
.gallery-subsection {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 3px solid var(--primary);
  position: relative;
}

.benefits-subsection::before,
.gallery-subsection::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
}

.benefits-subsection h3,
.gallery-subsection h3 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.benefits-subsection .section-intro,
.gallery-subsection .section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Classes Section */
.classes-section {
  background: linear-gradient(135deg, #fce7f3 0%, #fecaca 100%);
  position: relative;
  overflow: hidden;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.class-item {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  transition: all var(--transition-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.class-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal) var(--ease-smooth);
}

.class-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 40px var(--shadow-hover);
  border-color: var(--primary);
}

.class-item:hover::after {
  transform: scaleX(1);
}

.class-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal) var(--ease-bounce);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.class-item:hover .class-icon {
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.3));
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: scale(1.15) translateY(-5px); }
  50% { transform: scale(1.15) translateY(-10px); }
}

.class-item h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: color var(--transition-fast) var(--ease-smooth);
}

.class-item:hover h4 {
  color: var(--secondary);
}

.class-item p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #dbeafe 0%, #fecaca 100%);
  position: relative;
  overflow: hidden;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.contact-card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  transition: all var(--transition-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-light), transparent);
  opacity: 0.1;
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow) var(--ease-smooth),
              height var(--transition-slow) var(--ease-smooth);
  border-radius: 50%;
}

.contact-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.contact-card:hover::before {
  width: 300px;
  height: 300px;
}

.contact-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  transition: transform var(--transition-normal) var(--ease-bounce);
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-icon {
  transform: scale(1.2) rotate(10deg);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: scale(1.2) rotate(10deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  50% { transform: scale(1.2) rotate(10deg); }
  75% { transform: scale(1.2) rotate(-10deg); }
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast) var(--ease-smooth);
  position: relative;
  z-index: 1;
}

.contact-card a:hover {
  color: var(--secondary);
}

/* Map Container inside Contact Section */
.contact-section .map-container {
  max-width: 1000px;
  margin: 0 auto;
}

.map-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 2rem;
  background: white;
  padding: 10px;
  transition: all var(--transition-normal) var(--ease-smooth);
}

.map-wrapper:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: none;
}

.map-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.map-buttons .btn {
  min-width: 260px;
}

.map-buttons .btn span {
  font-size: 1.3rem;
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, #1e40af 0%, #991b1b 100%);
  color: white;
  padding: 3rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  opacity: 0.95;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 0.8;
}

.footer-hours {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.footer-credits {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Gallery Section */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all var(--transition-normal) var(--ease-smooth);
  aspect-ratio: 4/3;
  background: white;
}

.gallery-item::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  color: white;
  z-index: 2;
  transition: transform var(--transition-normal) var(--ease-bounce);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.6), rgba(220, 38, 38, 0.6));
  opacity: 0;
  transition: opacity var(--transition-normal) var(--ease-smooth);
  z-index: 1;
}

/* Efekty hover i kursor tylko na desktopie (> 768px) */
@media (min-width: 769px) {
  .gallery-item {
    cursor: pointer;
  }

  .gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 50px var(--shadow-hover);
  }

  .gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
  }

  .gallery-item:hover::after {
    opacity: 1;
  }

  .gallery-item:hover img {
    transform: scale(1.1);
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow) var(--ease-smooth);
  position: relative;
  z-index: 0;
}

/* Lightbox */
/* Lightbox - przepisany na nowo */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 40px;
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
  line-height: 1;
}

.lightbox-close:hover {
  color: #dc2626;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px 24px;
  color: white;
  font-weight: bold;
  font-size: 48px;
  cursor: pointer;
  border: none;
  background-color: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  user-select: none;
  z-index: 10001;
}

.lightbox-prev {
  left: 0;
  border-radius: 0 8px 8px 0;
}

.lightbox-next {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(220, 38, 38, 0.8);
}

/* Klasy animacji używane w JavaScript */
.slide-down {
  animation: slideDown 0.6s ease-out;
}

.fade-in {
  animation: fadeInAnim 0.8s ease-out;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.4s;
}

.delay-4 {
  animation-delay: 0.6s;
}

.delay-5 {
  animation-delay: 0.8s;
}

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

@keyframes fadeInAnim {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  #navbar {
    height: 70px;
  }

  .nav-content {
    padding: 0.75rem 0;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .hero {
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    background-attachment: scroll;
  }

  .hero-logo {
    width: 280px;
    height: 280px;
    margin-bottom: 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 200px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    min-width: unset;
    width: 100%;
  }

  section {
    padding: 3rem 0;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .intro,
  .section-intro {
    font-size: 1rem;
  }

  .method-features,
  .target-grid,
  .classes-grid,
  .process-steps,
  .stats-highlight,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .target-card,
  .class-item {
    padding: 2rem 1.5rem;
  }

  .feature-icon,
  .target-icon,
  .class-icon {
    font-size: 2.5rem;
  }

  .target-icon {
    font-size: 2rem;
  }

  .benefits-subsection,
  .gallery-subsection {
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .benefits-subsection h3,
  .gallery-subsection h3 {
    font-size: 1.8rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .method-process {
    padding: 2rem 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    max-height: 500px;
  }

  .nav-link {
    padding: 1rem 2rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
    width: 100%;
    display: block;
  }

  .nav-link:hover {
    background: var(--gradient-start);
    color: var(--primary);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .map-wrapper iframe {
    height: 350px;
  }

  .map-wrapper {
    padding: 8px;
    border-radius: 16px;
  }

  .map-wrapper iframe {
    border-radius: 12px;
  }

  .map-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .map-buttons .btn {
    width: 100%;
    min-width: unset;
    font-size: 1rem;
  }

  /* Lightbox responsive */
  .lightbox-content {
    max-width: 95%;
    max-height: 70vh;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 36px;
    padding: 12px 16px;
  }
}

/* ==================== Dodatkowe mikroanimacje i efekty wizualne ==================== */

/* Efekt ripple dla przycisków */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Animacja dla linków w footerze */
.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '→';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: all var(--transition-fast) var(--ease-smooth);
}

.footer-links a:hover::after {
  right: -25px;
  opacity: 1;
}

/* Efekt shine dla kart przy hover */
.feature-card,
.target-card,
.class-item {
  position: relative;
}

.feature-card::after,
.target-card::after,
.class-item::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotateZ(60deg) translateX(-100%);
  transition: transform 0.6s var(--ease-smooth);
}

.feature-card:hover::after,
.target-card:hover::after,
.class-item:hover::after {
  transform: rotateZ(60deg) translateX(100%);
}

/* Smooth hover dla wszystkich linków */
a {
  position: relative;
  text-decoration: none;
}

/* Uproszczony efekt hover dla ikon */
.icon-hover {
  transform: scale(1.15);
}

/* Cursor pointer dla interaktywnych elementów */
button,
.btn,
a,
.gallery-item,
.nav-link,
.mobile-menu-toggle {
  cursor: pointer;
}

/* Reduce motion dla osób z preferencjami accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .about-section::before,
  .about-section::after,
  .method-section::before,
  .method-section::after,
  .classes-section::before,
  .classes-section::after,
  .contact-section::before,
  .contact-section::after {
    display: none;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
