/* --- Konfiguracja globalna --- */
html {
  scroll-behavior: smooth;
}

:root {
  --color-background: #fdfcfb;
  --color-section-alt: #f7f3f0;
  --color-text: #2d2a28;
  --color-text-muted: #7a736e;
  --color-accent: #8c6a5e;
  --color-white: #ffffff;
  --max-width: 900px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Source Serif 4', serif;
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

p {
  margin: 0;
  line-height: 1.8;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-image: url("./materialy/images/las_flagi_osrodek.jpg");
  background-size: cover;
  background-position: center;
  /* Fixed background może sprawiać problemy na mobile - poprawka w media queries */
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  padding: 40px 20px;
  text-align: center;
}

.hero__title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 500;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  opacity: 0.9;
}

.hero__actions {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  min-width: 280px;
  text-decoration: none;
  transition: var(--transition);
}

.hero__action {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  min-width: 280px;
  text-decoration: none;
  transition: var(--transition);
}

.hero__cta:hover, .hero__action:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- SEKCJE --- */
.section {
  padding: 80px 20px;
}

.section:nth-child(even) {
  background-color: var(--color-section-alt);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
  padding: 50px;
  border-radius: 32px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.03);
}

.section__title {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: var(--color-text);
  font-weight: 400;
}

.section__content {
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.section__quote {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
  border-left: 1px solid var(--color-accent);
  padding-left: 30px;
  margin: 45px 0 0 0;
}

/* --- SPLIT / TEACHER --- */
.section__inner--split {
  display: flex;
  gap: 50px;
  align-items: center;
}

.section__column {
  flex: 1;
}

.teacher__image {
  width: 100%;
  border-radius: 20px;
  filter: sepia(15%);
  transition: var(--transition);
}

/* --- GALERIA --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  transition: var(--transition);
}

/* --- REZERWACJA --- */
.reservation {
  text-align: center;
  margin-top: 50px;
}

.reservation__button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--color-accent);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 50px;
  transition: var(--transition);
}

.reservation__button:hover {
  background: #72554b;
  transform: translateY(-2px);
}

.reservation__logo {
  display: block;
  margin: 0 auto 25px;
  max-width: 180px;
  height: auto;
}

.reservation__legal {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- STOPKA --- */
.footer {
  padding: 50px 20px;
  text-align: center;
  background: var(--color-section-alt);
}

.footer__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Fix dla iOS i starszych Androidów */
  }
  .section__inner--split { 
    flex-direction: column; 
    text-align: left; 
  }
  .section__inner { 
    padding: 35px 25px; 
  }
  .hero__title { 
    font-size: 2rem; 
  }
  .hero__cta, .hero__action { 
    min-width: 100%; 
  }
}

/* --- EFEKTY HOVER --- */
.gallery__image:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.teacher__image:hover {
  transform: scale(1.02);
  filter: sepia(0%);
}

/* --- TYPOGRAFIA --- */
p, .section__content {
  text-wrap: pretty;
}

/* Polecenie dla Cline: Dodaj to do sekcji stylów lub na końcu pliku */
@media (min-width: 769px) {
  #nauczyciel .section__title {
    white-space: nowrap;
  }
}
