/* TYPOGRAFIA GLOBALNA */
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #e7dfdf;
  background: #fffdef;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 0;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p {
  font-weight: 300;
  font-size: 1rem;
  margin: 0 0 20px 0;
}
b, strong { color: #41413f; font-weight: 700; }

/* HERO SECTION */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.hero-video {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* wypełnia cały kontener */
  min-width: 100%;        /* nie przycina się w poziomie */
  min-height: 100%;       /* nie przycina się w pionie */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-size: 1rem;
  line-height: 1;
}
.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.hero-content p {
  font-size: 1.4rem;
  max-width: 700px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* CTA BUTTONS */
.cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
} 
.btn {
  background: #FFE144;
  color: #000;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease;
  min-width: 220px;
  text-align: center;
}
.btn:hover { transform: scale(1.03); }
.btn-alt {
  background: #FFE144;
  color: #000;
}
.btn-alt:hover { background: #fff9c7; }

/* SECTION */
section {
  width: 100%;
  padding: 100px 20px;
  box-sizing: border-box;
}
section > div {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* FOOTER */
footer {
  width: 100%;
  padding: 40px 20px;
  background: #111;
  color: #393939;
  font-size: 0.9rem;
  text-align: center;
  box-sizing: border-box;
}

/* OFFER GRID */
.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.offer div {
  background: #222;
  padding: 20px;
  border-radius: 8px;
}

/* CONTACT FORM */
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #444;
  border-radius: 4px;
  background: #fffdef;
  color: #f0f0f0;
  font-size: 1rem;
  box-sizing: border-box;
}
.contact-form button {
  background: #FFE144;
  color: #000;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover { background: #EFE144; }

/* OGÓLNY STYL KARTY */
.offer-item {
  display: block;
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.offer-item:hover { transform: scale(1.02); }

/* KARTY */
.offer-piano {
  background-color: #f0f0f0;
  border: 2px solid #FFE144;
  color: #000;
}
.offer-piano h3, .offer-piano p { color: #000; }
.offer-edu {
  background-color: #7454d9;
  border: 2px solid #FFE144;
  color: #fdfafa;
}
.offer-edu h3, .offer-edu p { color: #FFE144; }
.offer-brand {
  background-color: #000;
  border: 2px solid #FFE144;
  color: #fff;
}
.offer-brand h3, .offer-brand p { color: #fff; }

/* ANIMACJE LINII */
.offer-item::before,
.offer-piano::before,
.offer-brand::before,
.offer-edu::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  top: 0;
  left: -100%;
}
.offer-item::before { background: #FFE144; }
.offer-piano::before { background: #FFE144; }
.offer-brand::before { background: #FFE144; }
.offer-edu::before { background: #000; }

.offer-item:hover::before,
.offer-piano:hover::before,
.offer-brand:hover::before,
.offer-edu:hover::before {
  animation: borderSlideTop 0.6s ease-out forwards;
}
@keyframes borderSlideTop {
  to { left: 100%; }
}

/* INTRO – split layout */
.intro-split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}
.intro-left {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
  box-sizing: border-box;
}
.intro-right {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-right video {
  max-width: 100%;
  max-height: 1080px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  display: block;
}

/* DEMO – Video Grid */
#demo {
  background-color: #111;
  padding: 60px 20px;
  text-align: center;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 proporcje */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}


/* OPINIE */
#opinie {
  background-color: #FFE144;
  color: #000;
  padding: 60px 20px;
  text-align: center;
}
#opinie h2 {
  font-size: 2rem;
  color:#000;
  margin-bottom: 40px;
  font-weight: 700;
}
#opinie blockquote {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  margin: 20px auto;
  max-width: 800px;
  line-height: 1.6;
  color: #000;
}

/* SEPARATOR */
.separator-with-text {
  position: relative;
  width: 100%;
  background: #FFE144;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.separator-with-text span {
  font-size: 1.8rem;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ----------------------- */
/* RESPONSYWNOŚĆ – MOBILE */
/* ----------------------- */
@media (max-width: 900px) {
  .intro-split {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .intro-left, .intro-right {
    flex: 1 1 100%;
    padding: 0;
  }
  .intro-right { margin-top: 30px; }
}

@media (max-width: 768px) {
  /* HERO */
  #hero {
    padding-top: 40px;
    min-height: 60vh;
  }
  #hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  #hero p { font-size: 1rem; }
  .cta {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  /* FLEX SEKCJE */
  .intro-split,
  .oferta-content,
  #pianino > div,
  #branding > div,
  #edukacja > div {
    flex-direction: column;
    padding: 30px 15px;
  }

  /* TEKSTY */
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  p { font-size: 0.95rem; line-height: 1.5; }

  /* MEDIA */
  img, video, iframe {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
  }
  .video-wrapper iframe,
  .video-wrapper video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  /* PADDING sekcji */
  section { padding: 50px 15px !important; }

  /* PRZYCISKI */
  .btn {
    display: block;
    padding: 12px 20px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  /* NAVBAR – MOBILE (burger) */
  .nav-links {
    display: none;                 /* ukryte domyślnie */
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(17,17,17,0.95);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    z-index: 1500;
  }
  .nav-links.show {
    display: flex;                 /* pokazuje się po kliknięciu burgera */
  }
  .nav-links a {
    font-size: 1rem;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    transition: color 0.2s ease;
  }
  .nav-links a:hover {
    color: #FFE144;
  }
  .burger {
    display: block;                /* burger widoczny tylko na mobile */
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
  }
}

/* ----------------------- */
/* FIX poziomego scrolla   */
/* ----------------------- */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.intro-split,
#pianino > div,
#branding > div,
#edukacja > div,
#proof > div {
  min-width: 0 !important;
  flex-wrap: wrap !important;
}
.video-wrapper,
.video-wrapper iframe,
.video-wrapper video {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  display: block !important;
}
audio {
  max-width: 100% !important;
  width: 100% !important;
}
img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* ----------------------- */
/* DESKTOP NAVBAR          */
/* ----------------------- */
.nav-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* LOGO PARTNERÓW */
.logo-client {
  height: 24px !important;     /* zawsze małe */
  width: auto !important;      /* zachowuje proporcje */
  display: inline-block !important;
  object-fit: contain;
}
/* EDUKACJA */
.edu-section {
  flex: 1 1 100%;
  background: #222;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.edu-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.edu-text h2 {
  color: #FFE144;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.edu-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ddd;
  margin-bottom: 20px;
}

/* Wideo pionowe (rolka) */
.video-wrapper.vertical {
  aspect-ratio: 9/16;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

/* Wideo poziome */
.video-wrapper.horizontal {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  margin-top: 20px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}


/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .video-wrapper.horizontal {
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  .edu-section {
    padding: 20px;
  }
  .edu-text h2 {
    font-size: 1.4rem;
  }
  .edu-text p {
    font-size: 0.9rem;
  }
}

