/* ===================== PODSTRONA: OPTYMALIZACJA / PODATKI ===================== */

/* HERO */
.tax-hero{
  background: url("/img/optymalizacja/bg2.webp") center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}



.tax-hero-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(680px, 100svh);
}

/* Lewy panel jak na screenie */
.tax-hero-content{
  position: relative;
  padding: clamp(38px, 6vw, 80px) clamp(18px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;

  background: rgba(0,0,0,0.7);
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* Nagłówek */
.tax-hero-title{
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 4px;
  font-family: "Libre Baskerville", serif;
  font-weight: bolder;

}

/* Tekst hero */
.tax-hero-text{
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  line-height: 1.8;
  opacity: 0.95;
}

/* CTA w hero */
.tax-hero-content .btn{
  align-self: flex-start;
  margin-top: 6px;
  padding: 12px 28px;
  font-size: 1rem;
}

/* Prawa strona: zdjęcie (DESKTOP: przyklejone do dołu) */
.tax-hero-photo{
  position: absolute;
  right: clamp(12px, 4vw, 60px);
  bottom: 0;

  height: 80%;
  display: flex;
  align-items: flex-end;
}

.tax-hero-photo img{
  height: 92%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}

/* ===================== SEKCJA: KROKI ===================== */
.tax-steps{
  background: #fff;
}

.tax-steps h2{
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 14px;
  font-family: "Libre Baskerville", serif;
  font-weight: bolder;
}

.tax-steps .section-intro{
  max-width: 72ch;
  margin: 0 auto 34px;
  font-size: clamp(1.0rem, 1.1vw, 1.12rem);
  line-height: 1.85;
}

.tax-steps-list{
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.tax-step{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 6px 0;
}

.tax-step-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
}

.tax-step-icon img{
  width: 3rem;
  height: auto;
  border-radius: 5%;
  object-fit: contain;
}

.tax-step-title{
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 1.25vw, 1.25rem);
  line-height: 1.2;
  color: #ba8913;
  font-family: "Libre Baskerville", serif;
  font-weight: bolder;
}

.tax-step-text{
  margin: 0;
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.8;
  color: #222;
}

/* ===================== SEKCJA: ZAKRES POMOCY (czarne karty) ===================== */
.tax-scope{
  background: #0f0f0f;
  color: #fff;
}

.tax-scope-title{
  text-align: center;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: clamp(18px, 3vw, 32px);
}

/* 3 kolumny jak na screenie */
.tax-scope-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  align-items: stretch;
}

.tax-scope-card{
  background: #fff;
  color: #222;
  border-radius: 14px;
  border: 1px solid rgba(213,165,53,0.45);
  padding: clamp(16px, 2.2vw, 22px);

  display: flex;
  flex-direction: column;
  text-align: center;

  box-shadow: 0 12px 34px rgba(0,0,0,0.22);
}

/* Ikona u góry */
.tax-scope-icon{
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
}

.tax-scope-icon img{
  width: 5rem;
  height: auto;
  object-fit: contain;
}

.tax-scope-card-title{
  margin: 6px 0 10px;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.2;
  color: #ba8913;
  font-weight: 800;
}

.tax-scope-card-text{
  margin: 0;
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.75;
  color: #222;
  opacity: 0.95;
}

/* przycisk na dół karty */
.tax-scope-btn{
  margin-top: auto;
  display: inline-block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5%;
}

/* dopasowanie outline w białych kartach */
.tax-scope-card .btn-outline{
  border-color: #d5a535;
  color: #a87910;
}

.tax-scope-card p{
  margin-bottom: 2rem;
}

/* ===================== RESPONSYWNOŚĆ ===================== */

/* trochę ciaśniej na średnich desktopach */
@media (max-width: 1200px){
  .tax-hero-photo{
    right: clamp(8px, 2vw, 28px);
  }

  .tax-hero-photo img{
    height: 88%;
  }
}

/* Tablet: hero w kolumnie, karty 2 w rzędzie */
@media (max-width: 900px){
  .tax-hero-inner{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tax-hero-content{
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
  }

  .tax-hero-content .btn{
    align-self: center;
  }

  /* ✅ KLUCZ: na mobile odklejamy absolute */
  .tax-hero-photo{
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    padding: 18px 0 0;
  }

  .tax-hero-photo img{
    height: auto;
    width: min(420px, 92%);
  }

  .tax-scope-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Telefon: kroki pod sobą (ikonka nad tekstem), karty 1 w rzędzie */
@media (max-width: 600px){
  .tax-step{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .tax-step-body{
    text-align: center;
  }

  .tax-scope-grid{
    grid-template-columns: 1fr;
  }
}

/* TAX HERO – czarne tło na całą szerokość (mobile) */
@media (max-width: 600px) {
  .tax-hero-content {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: clamp(18px, 5vw, 24px);
    padding-right: clamp(18px, 5vw, 24px);
    border-radius: 0; /* zero zaokrągleń */
  }
}


/* TAX SCOPE – karty dokładnie jak w #offer (złoty pasek po lewej) */
.tax-scope .tax-scope-card{
  background: #fff;
  color: #222;

  border: 0;                 /* jak w #offer */
  border-radius: 16px;
  position: relative;
  overflow: visible;
  z-index: 1;

  box-shadow:
    inset 5px 0 0 #d5a535,    /* ZŁOTY PASEK */
    0 22px 60px rgba(0, 0, 0, 0.45);  /* cień */
}

/* jeśli gdzieś wcześniej miałeś ::before i robiło syf, wyłączamy */
.tax-scope .tax-scope-card::before{
  display: none !important;
}
