/* ========================================
   MAIN STYLES - DebtFLOW Academy
   ======================================== */

/* Import zmiennych */
@import url('style.css');

/* ========================================
   RESET & BASE
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-body1);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* ========================================
   TYPOGRAFIA
   ======================================== */

h1 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(48px, 8vw, 100pt);
  line-height: 80pt;
  margin-bottom: 30px;
}

h2 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(36px, 5vw, var(--font-size-h2));
  line-height: 1.2;
  margin-bottom: 40px;
}

h3 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: clamp(24px, 3.5vw, var(--font-size-h3));
  line-height: 1.3;
  margin-bottom: 30px;
}

h4 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(28px, 3vw, var(--font-size-h4));
  line-height: 1.3;
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Kursywa jako akcent */
.accent-italic {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-style: italic;
  font-size: 0.972em;
}

/* Body variants */
.body-1 {
  font-size: var(--font-size-body1);
  font-weight: var(--font-weight-light);
}

.body-2 {
  font-size: clamp(20px, 2.5vw, var(--font-size-body2));
  font-weight: var(--font-weight-light);
}

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

.btn {
  display: inline-block;
  padding: 17px 40px 13px 40px;
  font-family: var(--font-primary);
  font-size: var(--font-size-button);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover,
.btn-primary:active {
  background: linear-gradient(-120deg, var(--color-accent-gold-start), var(--color-accent-gold-end));
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 202, 107, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-gold {
  background: linear-gradient(-120deg, var(--color-accent-gold-start), var(--color-accent-gold-end));
  color: var(--color-text);
  border: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 202, 107, 0.4);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 50px;
  transition: all 0.4s ease;
}

header.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.logo-wrapper {
  position: relative;
  justify-self: center;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 95px;
  width: auto;
  max-height: 95px;
  object-fit: contain;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.logo-white {
  position: absolute;
  opacity: 1;
}

.logo-blue {
  position: absolute;
  opacity: 0;
}

header.scrolled .logo-white {
  opacity: 0;
}

header.scrolled .logo-blue {
  opacity: 1;
}

header.scrolled .logo-wrapper {
  height: 50px;
}

header.scrolled .logo {
  height: 50px;
  max-height: 50px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-right .btn {
  display: none;
}

.nav-f-logo {
  height: 30px;
  position: relative;
  top: -3px;
  transition: all 0.3s ease;
}

.nav-left ul,
.nav-right ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-left a,
.nav-right a {
  font-size: var(--font-size-button);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
}

header.scrolled .nav-left a,
header.scrolled .nav-right a {
  color: var(--color-primary);
}

.nav-left a::after,
.nav-right a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(-120deg, var(--color-accent-gold-start), var(--color-accent-gold-end));
  transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-right a:hover::after {
  width: 100%;
}

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

#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--color-white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-background img,
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1) saturate(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.15) 0%, 
    rgba(0, 0, 0, 0.25) 50%, 
    rgba(0, 0, 0, 0.5) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  padding: 120px 50px 60px;
  animation: fadeInUp 1s ease-out;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  height: 50vh;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 50px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  padding-top: 70px;
}

.hero-right .btn {
  margin-top: 20px;
}

.hero-right h3 .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
}

.hero-right h3 .letter.animate {
  animation: heroLetterFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroLetterFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1,
.hero-content h3 {
  position: relative;
  top: 0;
}

.hero-content h1 {
  font-size: 56pt;
  line-height: 58pt;
  text-align: left;
  margin-bottom: 0;
}

.hero-content h3 {
  font-size: 28pt;
  line-height: 34pt;
  text-align: left;
  margin-bottom: 0;
  word-break: keep-all;
  hyphens: none;
  overflow-wrap: normal;
}

.hero-content .btn {
  margin-top: 0;
}


/* ========================================
   SECTIONS
   ======================================== */

section {
  padding: var(--section-padding) 50px;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-divider {
  height: 0.5px;
  background-color: var(--color-primary);
  margin: 60px auto;
  max-width: 90%;
}

.section-divider-white {
  background-color: var(--color-white);
}

.section-divider-opinie {
  margin-bottom: 0;
}

.section-divider-korzysci-oferta {
  margin: 40px auto;
}

/* ========================================
   MISJA SECTION
   ======================================== */

/* Custom properties for scroll-triggered animation */
@property --logo-translate {
  syntax: '<length>';
  inherits: false;
  initial-value: 100px;
}

@property --logo-opacity {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

#misja {
  background-color: var(--color-white);
}

.misja-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  margin-top: -20px;
}

.misja-title {
  margin-top: -22px;
}

.misja-logo-wrapper {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

.misja-text {
  grid-column: 2;
  grid-row: 1 / 3;
}

.misja-logo {
  height: 300px;
  width: auto;
  margin-top: 70px;
  --logo-translate: 100px;
  --logo-opacity: 0;
  opacity: var(--logo-opacity);
  transform: translateY(var(--logo-translate));
  transition: --logo-translate 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              --logo-opacity 1.2s ease-out;
  cursor: pointer;
  position: relative;
}

.misja-logo.escape {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.misja-logo.visible {
  --logo-translate: 0px;
  --logo-opacity: 1;
}

.misja-text p {
  line-height: 1.2;
  margin-bottom: 30px;
}

.misja-text p:last-child {
  margin-bottom: 0;
}

.misja-paragraph {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1.8s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.misja-paragraph.visible {
  opacity: 1;
  transform: translateY(0);
}

.misja-accent {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-style: italic;
  font-size: 0.8em;
}

.misja-highlight {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
  margin: 30px 0;
  color: var(--color-primary);
}

/* ========================================
   KORZYŚCI SECTION
   ======================================== */

#korzyści {
  background-color: var(--color-white);
  padding: 100px 50px;
}

.korzyści-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.korzyści-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.korzyści-grid:hover .korzyści-item {
  opacity: 0.3;
}

.korzyści-grid:hover .korzyści-item:hover {
  opacity: 1;
}

.korzyści-line {
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  margin-bottom: 30px;
}

.korzyści-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}

.korzyści-item h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 24pt;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.korzyści-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.korzyści-text {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 18pt;
  line-height: 22pt;
  color: var(--color-primary);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  #korzyści .korzyści-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  #korzyści2 .korzyści-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}

@media (max-width: 1024px) {
  #korzyści2 .korzyści-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========================================
   OFERTA SECTION
   ======================================== */

#oferta {
  background-color: var(--color-white);
  padding: 100px 0 0 0;
}

.oferta-header {
  padding: 0 50px 60px 50px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.oferta-title {
  margin-top: -22px;
}

.oferta-title h2 {
  margin-bottom: 30px;
}

.oferta-title .btn {
  margin-top: 0;
}

.oferta-text {
  line-height: 1.2;
}

.oferta-intro-text {
  font-size: clamp(20px, 2.5vw, var(--font-size-body2));
  font-weight: var(--font-weight-light);
  line-height: 1.2;
  margin-bottom: 0;
}

.oferta-list {
  width: 100%;
}

.oferta-block {
  width: 100%;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-primary);
  transition: background-color 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
}

.oferta-block:last-child {
  border-bottom: 1px solid var(--color-primary);
}

.oferta-block-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 50px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.oferta-block-title {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(28px, 3.5vw, 48pt);
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
  transition: color 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.oferta-block-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), 
              opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s, 
              margin-top 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.05s;
  margin-top: 0;
}

.oferta-block-details p {
  font-size: var(--font-size-body1);
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 20px;
}

.oferta-btn {
  background: linear-gradient(-120deg, var(--color-accent-gold-start), var(--color-accent-gold-end));
  border: none;
  color: var(--color-text);
  padding: 17px 40px 13px 40px;
  border-radius: 40px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: var(--font-size-button);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  align-self: flex-start;
}

.oferta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 202, 107, 0.4);
}

/* Hover state */
.oferta-block:hover,
.oferta-block.expanded {
  background-color: var(--color-primary);
}

.oferta-block:hover .oferta-block-title,
.oferta-block.expanded .oferta-block-title {
  color: var(--color-white);
}

.oferta-block:hover .oferta-block-details,
.oferta-block.expanded .oferta-block-details {
  max-height: 500px;
  opacity: 1;
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .oferta-block-content {
    padding: 40px 30px;
    min-height: 100px;
  }
  
  .oferta-block-title {
    font-size: clamp(24px, 5vw, 32pt);
  }
}

/* ========================================
   KORZYŚCI 2 SECTION
   ======================================== */

#korzyści2 {
  background-color: var(--color-white);
  padding: 100px 0;
}

#korzyści2 .korzyści-grid {
  padding: 0 50px;
}

.korzyści2-header {
  padding: 0 50px 60px 50px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.korzyści2-title {
  margin-top: -22px;
}

.korzyści2-title h2 {
  margin-bottom: 0;
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(48px, 6vw, var(--font-size-h2));
  color: var(--color-primary);
}

.korzyści2-text {
  line-height: 1.2;
}

.korzyści2-intro-text {
  font-size: clamp(20px, 2.5vw, var(--font-size-body2));
  font-weight: var(--font-weight-light);
  font-family: var(--font-primary);
  line-height: 1.2;
  margin-bottom: 0;
}

.korzyści2-accent {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-style: italic;
  font-size: 0.8em;
}

/* Responsive for Korzyści 2 */
@media (max-width: 1024px) {
  .korzyści2-header {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 50px 50px 50px;
  }
  
  .korzyści2-title {
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  #korzyści2 {
    padding: 60px 20px;
  }
  
  .korzyści2-header {
    padding: 0 10px 40px 10px;
    gap: 30px;
  }
  
  #korzyści2 .korzyści-grid {
    padding: 0 10px;
  }
  
  .korzyści2-intro-text {
    font-size: 24px;
  }
  
  .korzyści2-accent {
    font-size: 20px;
  }
}

/* ========================================
   INTRO FILM SECTION
   ======================================== */

#intro-film {
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 70px 50px 30px 50px;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

.intro-film-text {
  font-family: var(--font-primary);
  font-size: 48px;
  line-height: 40pt;
  font-weight: var(--font-weight-light);
  text-align: left;
  text-indent: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  position: relative;
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 2s ease-out, transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro-film-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.intro-film-accent {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-style: italic;
  font-size: 38.4px;
}

/* ========================================
   FILM SECTION
   ======================================== */

#film {
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 40px 20px 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.film-wrapper {
  max-width: 1650px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.film-video-container {
  position: relative;
  width: 100%;
  max-width: 1604px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8.4% 15%;
}

.film-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.film-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-color: #000000;
  overflow: hidden;
  z-index: 1;
}

.film-placeholder iframe,
#youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.film-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #301b00;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ========================================
   OPINIE SECTION
   ======================================== */

#opinie {
  background-color: var(--color-white);
  padding-top: 30px;
  margin-top: 0;
}

.opinie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.opinia-item {
  padding: 40px;
  border: 0.5px solid var(--color-primary);
  border-radius: 8px;
  font-style: italic;
  font-family: var(--font-secondary);
  font-size: 24px;
  transition: all 0.3s ease;
}

.opinia-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 18, 173, 0.1);
}

.opinia-author {
  margin-top: 20px;
  font-style: normal;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  text-align: right;
}

/* ========================================
   CTA SECTION
   ======================================== */

#cta {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 18, 173, 0.7);
  mix-blend-mode: soft-light;
  z-index: 1;
  pointer-events: none;
}

.cta-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 5, 40, 0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.cta-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.cta-logo {
  height: 300px;
  width: auto;
  margin-bottom: 40px;
  --logo-translate: 100px;
  --logo-opacity: 0;
  opacity: var(--logo-opacity);
  transform: translateY(var(--logo-translate));
  transition: --logo-translate 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              --logo-opacity 1.2s ease-out;
  cursor: pointer;
  position: relative;
}

.cta-logo.escape {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-logo.visible {
  --logo-translate: 0px;
  --logo-opacity: 1;
}

.cta-text {
  font-size: clamp(32px, 4vw, 56px);
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 40px;
}

.cta-text .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.cta-text .letter.animate {
  animation: letterFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes letterFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

#kontakt {
  background-color: var(--color-white);
  padding-top: 40px;
}

.kontakt-page #kontakt h2 {
  margin-top: 140px;
}

.kontakt-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 40px;
}

.kontakt-info {
  padding-top: 30px;
}

.kontakt-info h3 {
  margin-bottom: 20px;
  line-height: 1.1;
}

.kontakt-info p {
  line-height: 1.3;
}

.kontakt-form {
  padding-top: 40px;
}

.kontakt-details {
  margin-top: 40px;
}

.kontakt-details p {
  font-size: 18px;
  margin-bottom: 15px;
}

.kontakt-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kontakt-form input {
  width: 100%;
  padding: 10px 20px 15px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.kontakt-form textarea {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.1);
}

.kontakt-form textarea {
  resize: vertical;
  min-height: 120px;
}

.kontakt-form button {
  align-self: flex-start;
}

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

footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 50px 50px;
  margin-top: 0;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.footer-logo {
  justify-self: start;
}

.footer-logo img {
  height: 150px;
  animation: footerFadeLoop 3.5s ease-in-out infinite;
}

@keyframes footerFadeLoop {
  0% {
    opacity: 1;
  }
  14.3% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  justify-self: start;
}

.footer-contact {
  justify-self: center;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
  word-break: keep-all;
  hyphens: none;
}

.footer-links a {
  font-size: var(--font-size-button);
  font-weight: 600;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--color-accent-gold-start);
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-delay-3 {
  animation-delay: 0.6s;
}

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

@media (min-width: 1024px) {
  .footer-contact {
    margin-left: -50px;
  }
}

@media (max-width: 1400px) {
  .oferta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .oferta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .misja-content,
  .oferta-content,
  .film-content,
  .kontakt-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr auto;
    text-align: left;
    gap: 40px;
    align-items: start;
  }
  
  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    order: 1;
  }
  
  .footer-contact {
    display: none;
  }
  
  .footer-logo {
    justify-self: end;
    order: 2;
  }
  
  .footer-logo img {
    height: 75px;
  }
  
  .footer-links {
    justify-self: start;
    align-items: flex-start;
  }
  
  nav {
    gap: 30px;
  }
  
  .nav-left,
  .nav-right {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
  }
  
  section {
    padding: var(--section-padding) 30px;
  }
  
  .section-divider-oferta-korzysci2 {
    display: none;
  }
  
  #film {
    padding: 30px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
  
  .film-wrapper {
    padding: 0;
    max-width: 100%;
  }
  
  .film-video-container {
    padding: 8.4% 5%;
  }
  
  .film-frame {
    display: none;
  }
  
  #intro-film {
    padding: 60px 30px 20px 30px;
  }
  
  .intro-film-text {
    font-size: clamp(28px, 6vw, 48px);
    line-height: 1.3;
  }
  
  .intro-film-accent {
    font-size: 0.8em;
  }
  
  #opinie {
    padding-top: 20px;
  }
  
  header {
    padding: 12px 15px;
    height: 56px;
    box-sizing: border-box;
  }
  
  .header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    max-width: 100%;
  }
  
  .nav-left {
    justify-self: start;
    display: flex;
  }
  
  .nav-left ul {
    display: flex;
    gap: 15px;
  }
  
  .nav-left a {
    font-size: 10px;
    padding: 0;
  }
  
  .nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .nav-right ul {
    display: flex;
    gap: 15px;
  }
  
  .nav-right a {
    font-size: 10px;
    padding: 0;
  }
  
  .nav-f-logo {
    display: block;
  }
  
  .nav-right .btn {
    display: none;
  }
  
  .hamburger {
    display: none;
  }
  
  .logo-wrapper {
    height: 18px;
  }
  
  .logo {
    height: 18px;
    max-width: 64px;
  }
  
  .logo-blue {
    height: 14px;
    max-width: 51px;
  }
  
  .nav-f-logo {
    height: 20px;
  }
  
  #hero {
    padding: 0;
    margin: 0;
  }
  
  #misja {
    padding-top: 32px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
    gap: 30px;
    height: auto;
  }
  
  .hero-left,
  .hero-right {
    gap: 20px;
    padding-top: 20px;
  }
  
  .hero-content h1 {
    font-size: clamp(32px, 7vw, 48px);
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  
  .hero-content h3 {
    font-size: clamp(16px, 4vw, 24px);
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  
  .misja-content {
    grid-template-columns: 1fr;
    gap: 40px;
    display: flex;
    flex-direction: column;
  }
  
  .misja-title {
    order: 1;
    margin-top: 0;
  }
  
  .misja-text {
    order: 2;
  }
  
  .misja-logo-wrapper {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .misja-logo {
    margin: 0 auto;
    height: 200px;
  }
  
  .misja-accent {
    font-size: 0.8em;
  }
  
  .misja-highlight {
    font-size: 16px;
  }
  
  .oferta-header {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 30px 40px;
  }
  
  .oferta-title {
    order: 1;
    margin-top: 0;
  }
  
  .oferta-title .btn {
    order: 2;
  }
  
  .oferta-text {
    order: 3;
  }
  
  .oferta-list {
    order: 4;
  }
  
  .oferta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .oferta-item {
    min-height: auto;
  }
  
  .oferta-description {
    max-height: none;
  }
  
  #korzyści2 .korzyści-item {
    padding-left: 0;
  }
  
  #korzyści2 .korzyści-header {
    align-items: flex-start;
  }
  
  #korzyści2 .korzyści-header h5 {
    text-align: left;
  }
  
  #korzyści2 .korzyści-text {
    text-align: left;
  }
  
  .opinie-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
  }
  
  .oferta-grid {
    grid-template-columns: 1fr;
  }
  
  .oferta-description {
    opacity: 1;
  }
  
  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  .logo {
    height: 40px;
  }
  
  .cta-logo {
    height: 180px;
  }
}

/* ========================================
   OFERTA PAGE - EXPANDABLE BLOCKS
   ======================================== */

.oferta-page #main-header {
  background-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 50px;
  height: auto;
}

.oferta-page #main-header .logo,
.oferta-page #main-header .nav-f-logo {
  filter: none;
}

.oferta-page #main-header a {
  color: var(--color-white);
}

.oferta-page #main-header .logo {
  height: 95px;
}

.oferta-page #main-header .nav-f-logo {
  height: 30px;
}

#oferta-page-main {
  padding: 180px 50px 80px;
  background-color: var(--color-white);
}

.oferta-page-title {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: 64pt;
  color: var(--color-primary);
  margin-bottom: 60px;
  text-align: left;
}

.oferta-expandable-blocks {
  width: 100%;
  max-width: 100%;
}

.oferta-expandable-block {
  width: 100%;
  background-color: var(--color-white);
  transition: all 0.4s ease;
}

.oferta-expandable-line {
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  margin: 0;
}

.oferta-expandable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  cursor: pointer;
  gap: 30px;
}

.oferta-expandable-header h3 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(28px, 3.5vw, 48pt);
  color: var(--color-primary);
  margin: 0;
  flex: 1;
  line-height: 1.2;
  word-break: keep-all;
  hyphens: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.oferta-expandable-header:hover h3 {
  transform: translateX(10px);
}

.oferta-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.oferta-expand-btn:hover {
  transform: scale(1.15);
}

.oferta-expandable-block.expanded .oferta-expand-btn {
  transform: rotate(180deg);
}

.oferta-expandable-block.expanded .oferta-expand-btn:hover {
  transform: rotate(180deg) scale(1.15);
}

.oferta-expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.5s ease;
  opacity: 0;
  padding: 0;
}

.oferta-expandable-block.expanded .oferta-expandable-content {
  max-height: 1000px;
  opacity: 1;
  padding: 0 0 40px 0;
}

.oferta-expandable-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-body1);
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 30px;
  word-break: keep-all;
  hyphens: none;
}

.oferta-expandable-content .btn {
  margin-top: 10px;
}

@media (max-width: 1024px) {
  #oferta-page-main {
    padding: 120px 40px 60px;
  }
  
  .oferta-page-title {
    font-size: clamp(36px, 6vw, 64pt);
    margin-bottom: 40px;
  }
  
  .oferta-expandable-header {
    padding: 30px 0;
  }
  
  .oferta-expandable-header h3 {
    font-size: clamp(24px, 4vw, 36pt);
  }
}

@media (max-width: 1024px) {
  #oferta-page-main {
    padding: 100px 30px 40px;
  }
  
  .oferta-page-title {
    font-size: clamp(32px, 7vw, 48pt);
    margin-bottom: 30px;
  }
  
  .oferta-expandable-header {
    padding: 25px 0;
    gap: 20px;
  }
  
  .oferta-expandable-header h3 {
    font-size: clamp(20px, 5vw, 28pt);
  }
  
  .oferta-expand-btn {
    width: 50px;
    height: 50px;
  }
  
  .oferta-expandable-block.expanded .oferta-expandable-content {
    padding: 0 0 30px 0;
  }
}

/* ========================================
   O NAS PAGE
   ======================================== */

.o-nas-page #main-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 50px;
  height: auto;
}

.o-nas-page #main-header .logo {
  height: 50px;
}

.o-nas-page #main-header .nav-f-logo {
  height: 30px;
}

.o-nas-page #main-header nav ul li a {
  color: var(--color-primary);
}

.o-nas-page footer {
  margin-top: 0;
}

/* Historia Firmy Section */
#historia-firmy {
  padding: 130px 50px 80px;
  background-color: var(--color-white);
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.historia-left h2 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: 64pt;
  color: var(--color-primary);
  margin-bottom: 0;
  line-height: 1.2;
}

.historia-left h2 .accent-italic {
  font-size: 0.972em;
}

.historia-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.historia-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: 32px;
  line-height: 38px;
  color: var(--color-primary);
  margin-bottom: 30px;
  word-break: keep-all;
  hyphens: none;
}

.historia-paragraph {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.historia-paragraph.visible {
  opacity: 1;
  transform: translateY(0);
}

.historia-text .accent-italic {
  font-size: 0.81em;
}

/* Założycielka Section - Header with Blue Background */
#zalozycielka-header {
  padding: 80px 0;
  background-color: var(--color-primary);
  width: 100%;
}

.zalozycielka-header-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.zalozycielka-left h2 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: 64pt;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.zalozycielka-name {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: 48pt;
  color: var(--color-white);
  margin: 0;
  line-height: 1.2;
  padding-bottom: 30px;
}

.zalozycielka-name .accent-italic {
  font-size: 0.7776em;
}

.zalozycielka-wave {
  display: block;
  width: 87%;
  height: auto;
  margin-top: 50px;
  position: relative;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.8s ease, clip-path 0.8s ease;
}

#zalozycielka-header:hover .zalozycielka-wave {
  animation: waveReveal 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#zalozycielka-header:not(:hover) .zalozycielka-wave {
  animation: waveHide 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes waveReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  50% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes waveHide {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  50% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
}

.zalozycielka-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 50px;
}

.zalozycielka-image {
  width: 100%;
  max-width: 500px;
  margin-left: 10px;
}

.zalozycielka-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Założycielka Section - Text Columns */
#zalozycielka-text {
  padding: 80px 0;
  background-color: var(--color-white);
}

.zalozycielka-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.zalozycielka-paragraph {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: 32px;
  line-height: 38px;
  color: var(--color-primary);
  margin: 0;
  word-break: keep-all;
  hyphens: none;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zalozycielka-paragraph.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.zalozycielka-paragraph .accent-italic {
  font-size: 0.7776em;
}

/* Responsive - O NAS */
@media (max-width: 1024px) {
  #historia-firmy {
    padding: 120px 40px 60px;
  }
  
  #zalozycielka-header {
    padding: 60px 0;
  }
  
  #zalozycielka-text {
    padding: 60px 0;
  }
  
  .historia-content,
  .zalozycielka-header-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .historia-left h2,
  .zalozycielka-left h2 {
    font-size: clamp(36px, 6vw, 64pt);
  }
  
  .zalozycielka-name {
    font-size: clamp(28px, 5vw, 48pt);
    margin-bottom: 30px;
  }
  
  .historia-text,
  .zalozycielka-paragraph {
    font-size: clamp(20px, 4vw, 32px);
  }
  
  .zalozycielka-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .zalozycielka-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  #historia-firmy {
    padding: 100px 30px 40px;
  }
  
  #zalozycielka-header {
    padding: 40px 0;
  }
  
  #zalozycielka-text {
    padding: 40px 0;
  }
  
  .historia-left h2,
  .zalozycielka-left h2 {
    font-size: clamp(32px, 7vw, 48pt);
    margin-bottom: 30px;
  }
  
  .zalozycielka-name {
    font-size: clamp(24px, 6vw, 36pt);
    margin-bottom: 30px;
  }
  
  .historia-text,
  .zalozycielka-paragraph {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.5;
  }
  
  .zalozycielka-image {
    max-width: 100%;
  }
  
  .zalozycielka-columns {
    gap: 20px;
  }
}

/* ========================================
   VERY NARROW SCREENS (≤480px)
   ======================================== */

@media (max-width: 480px) {
  /* Hide "O NAS" and "BLOG" - keep only "OFERTA" */
  .nav-left ul li:nth-child(1),
  .nav-left ul li:nth-child(3) {
    display: none;
  }
  
  .nav-left ul {
    gap: 0;
  }
  
  .nav-right ul {
    gap: 0;
  }
  
  .header-content {
    gap: 5px;
  }
  
  .nav-left a,
  .nav-right a {
    font-size: 10px;
  }
  
  .nav-right .btn {
    padding: 5px 10px 3px 10px;
    font-size: 10px;
  }
  
  .logo {
    max-width: 100px;
  }
  
  .logo-wrapper {
    height: 50px;
  }
  
  .logo {
    height: 50px;
    max-width: 100px;
  }
  
  .logo-blue {
    height: 40px;
    max-width: 80px;
  }
}

/* ========================================
   HEIGHT MEDIA QUERIES
   ======================================== */

@media (max-height: 1024px) {
  .misja-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .misja-logo {
    margin: 0 auto;
  }
}
