:root {
  --c-text: #0b0f17; /* prawie czarny */
  --c-muted: #6c6f76; /* opis/paragrafy */
  --c-line: #e6e2de; /* delikatne linie */
  --c-accent: #3cdc92; /* zielony akcent */
  --c-accent-2: #142338; /* granat na kartach */
  --radius: 28px;
  --radius-lg: 40px;
}

#homepage {
  color: var(--c-text);
  line-height: 1.45;
}
#homepage .container {
  max-width: var(--container);
}

.section-title {
  font-size: 4.8rem;
  font-weight: 300;
  padding-top: 5%;
}
.section-title.center {
  text-align: center;
  font-size: 10rem;
  font-weight: 400;
}

/* ========== 1) GOALS ========== */
.hp-goals {
  background: var(--c-bg);
  padding: clamp(24px, 5vw, 56px) 0;
}
.hp-goals__content {
  font-size: 4.8rem;
  line-height: 130%;
  margin-right: 4%;
  font-weight: 600;
}

/* ========== 2) VALUES (4 kafelki) ========== */
.hp-values {
  padding: 20px 0 64px;
}
.hp-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7rem;
}
.value-card {
  padding: 22px 0 28px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.value-card__head {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  margin-bottom: 3rem;
}
.value-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.value-card__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
}
.value-card__desc {
  font-size: 1.8rem;
  line-height: 130%;
  font-weight: 500;
}
.value-card + .value-card {
  border-left: 0;
}

/* ========== 3) Nagłówki sekcji (Obszary / Referencje / Dlaczego) ========== */

/* ====== SERVICES (tabs + panels) ====== */
.hp-services {
  padding: 18px 0 70px;
}
.hp-services__wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10rem;
}
.hp-services__tabs {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 14px;
}

.service-tab {
  background: none;
  border: 0;
  text-align: left;
  font-size: 3.2rem;
  font-weight: 400;
  color: #c7c7c7;
  padding: 0 0 0 4.4rem;
  position: relative;
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.3s ease;
}
.service-tab:hover {
  color: black;
}

.service-tab.is-active {
  color: var(--c-text);
  background: 0;
}

.service-tab.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #3cdc92; 
}

.service-tab.is-active::after {
  content: url("../assets/arrow_offert.svg");
  position: absolute;
  color: #000000;
  line-height: 1;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-tab[aria-selected="true"] {
  color: var(--c-text);
}

.hp-services__panels {
  position: relative;
}
.service-panel {
  display: none; 
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.acc:last-child {
  border-radius: 0 0 5rem 5rem;
}

.acc:first-child {
  border-radius: 5rem 5rem 0 0;
}

section#service-panel-2 .acc:first-child {
  border-radius: 5rem;
}

.acc:only-child {
  border-radius: 5rem;
}

.service-panel[style*="display:block"],
.service-panel.is-active {
  display: block; /* pokazuj aktywny */
  opacity: 1;
  transform: translateY(0);
}

/* stan wychodzący – pozostaje display:block do końca animacji */
.service-panel.is-leaving {
  display: block;
  opacity: 0;
  transform: translateY(10px);
}

/* Nagłówek „Oferta ProEscon” nad tabami */
.services-label {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 5rem;
  position: relative;
}
.services-label::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #ddd;
  margin-top: 6px;
}

/* obraz na górze panelu */
.service-panel__image {
  border-radius: 5rem;
  overflow: hidden;
  height: clamp(140px, 26vw, 15rem);
  margin-bottom: 2.4rem;
}
.service-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#service-panel-2 .service-panel__image img {
  /* dowolne style np. przesunięcie */
  object-position: 0 -16rem;
}

/* akordeon */
.service-panel__accordion {
  display: grid;
  gap: 0.2rem;
}
.acc {
  background: #d9d6cc; /* beż jak na screenie */
  overflow: hidden;
}
.acc__head {
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*   padding: 5rem; */
  padding: 32px 64px 32px 64px;
  font-size: 2.4rem;
  font-weight: 600;
  cursor: pointer;
}

.acc__head[aria-expanded="false"] {
  /* padding: 5rem; ustaw taki padding jaki chcesz */
}

.acc__icon {
  display: inline-flex; /* ikona wyśrodkowana */
  align-items: center;
  justify-content: center;
  width: 30px; /* średnica kółka */
  height: 30px;
  border-radius: 50%; /* robi kółko */
  background-color: #fff; /* białe kółko */
  color: #000; /* kolor znaku + / - */
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  border: 1px solid #ccc; /* subtelna ramka */
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.acc__icon img {
  display: inline-block;
  vertical-align: middle;
}

img.icon-minus {
  width: 14px;
}

img.icon-plus {
  width: 22px;
  height: 22px;
}

.acc__panel {
  display: block;
  font-size: 1.8rem;
  line-height: 150%;
}


.acc__panel {
  display: block;            
  max-height: 0;
  overflow: hidden;
  transition: max-height 820ms cubic-bezier(.2,.7,.2,1), 
              -webkit-mask 820ms ease, mask 820ms ease; /* opcjonalnie mask */
  --mx: 50%;
  --my: 50%;
  --mr: 0px;
  -webkit-mask: radial-gradient(circle var(--mr) at var(--mx) var(--my), #000 99%, transparent 100%);
  mask: radial-gradient(circle var(--mr) at var(--mx) var(--my), #000 99%, transparent 100%);
}

.acc__panel.is-open {
  --mr: 160vmax;
}


.acc__body {
    line-height: 1.6;
    padding: 4.8rem;
    font-weight: 500;
}

.acc__body ul {
    padding: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 5rem;
}

.hp-refs {
  padding: 24px 0 72px;
}

.hp-refs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.ref-card {
  background: var(--c-accent-2);
  color: #fff;
  border-radius: 5rem;
  padding: 7rem 5rem 2rem 5rem;
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1.5rem;
}
.ref-card__value {
  font-size: 4.8rem;
  font-weight: 400;
}
.ref-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
}
.ref-card__desc {
  font-size: 2rem;
  line-height: 150%;
  font-weight: 500;
}

/* ========== 6) WHY – intro (nagłówek + przycisk) ========== */
.hp-why-intro {
  /*   padding: 18px 0 8px; */
}
.hp-why-intro__grid {
  display: grid;
  grid-template-columns: 2fr 2fr;
  align-items: end;
}

.why-proescon-title {
  padding: 0;
  margin: 0;
}

.hp-why-intro__left {
  font-size: 4.8rem;
  font-weight: 600;
  line-height: 120%;
  margin: 32px auto;
}

.hp-why-intro__right {
  display: flex;
  justify-content: right;
  padding-bottom: 32px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--c-text);
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
}
.btn-link:hover {
  background: #111;
  color: #fff;
}

/* ========== 7) WHY – lewa karta z obrazem + slider cech ========== */
.hp-why-cards {
  padding: 10px 0 90px;
  overflow: hidden;
}
.hp-why-cards__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.btn-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #0d1b2a; /* ciemny tekst */
  text-decoration: none;
}

.btn-ghost {
  align-items: center;
  color: #142338;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
}

.arrow-icon:hover img {
  animation: slideAndReturn 0.4s ease forwards;
}

@keyframes slideAndReturn {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(30px); /* slide to right */
    opacity: 0;
  }
  60% {
    transform: translateX(-30px); /* returns from left */
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.btn-icon {
  width: 32px;
  height: 32px;
  background: #e5e1d8; /* jasne tło */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.btn-icon .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
}

/* animacja uruchamia się przy najechaniu */
.btn-icon:hover .icon {
  animation: fallAndReturn 0.4s ease forwards;
}

@keyframes fallAndReturn {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(30px); /* spadek w dół */
    opacity: 0;
  }
  60% {
    transform: translateY(-30px); /* wraca od góry */
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* WHY – video w lewej karcie */
.why-card {
  border-radius: 56px;
  display: grid;
  place-items: center;
  background-color: #16233a;
  height: 470px;
}

.why-card__video {
  width: 100%;
  display: block;
  border-radius: 36px;
  object-fit: cover; /* wypełnia bez „letterboxa” */
  aspect-ratio: 4 / 3;
}

/* jeżeli chcesz trzymać stałe proporcje (np. 16:9), możesz zamiast height użyć: */
/*
.why-card__video{
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 36px;
  object-fit: cover;
  display: block;
  background: #0b0f17;
}
*/

/* slider po prawej */
/* WHY – prawa strona (slajdy z tekstem) */
/* Kontener slajdów */
.why-slider {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 6% 0;
}

/* Grid na desktopie */
.why-slider__slides {
  /* override grid */
  display: flex;
  overflow-x: auto;
  gap: 4rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Pojedynczy slajd */
.why-slide {
  flex: 0 0 calc(50% - 2rem); /* 2 items per view on desktop, minus half gap */
  scroll-snap-align: start;
}

section#service-panel-2 .acc:last-child {
    display: none;
}

.blog-card__excerpt .excerpt--mobile { display: none; }



@media (max-width: 1100px) {
  .why-slide {
    flex-basis: 100%; /* 1 per view on tablet/mobile */
  }

    .service-tab.is-active::before {
        content: url(../assets/arrow_down.svg);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        background: #3cdc92;
        border-radius: 50%;
        width: 23px;
        height: 23px;
        transform: scale(1.1) rotate(180deg);
        margin-right: 16px;
        position: relative;
    }

  .service-tab span {
    width: 80%;
  }

  .service-tab {
    display: flex;
  }
}

.why-slide__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
}
.why-slide__title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #ddd;
  margin-top: 0.6rem;
}

.why-slide__desc {
  font-size: 3.2rem;
  line-height: 130%;
  margin-top: 4rem;
  margin-right: 20%;
}

/* Nawigacja na dole */
.why-slider__nav {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.why-slider__nav button {
  width: 42px;
  height: 42px;
  border: 1px solid #142338;
  border-radius: 6px;
  background: #fff;
  color: #142338;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* hover – lekko „opada” i robi się zielony */
.why-slider__nav button:hover {
  background: #3cdc92;
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-color: #3cdc92;
}

/* podczas trzymania przycisku – trochę mocniej */
.why-slider__nav button:active {
  transform: translateY(4px);
}






@media (max-width: 1600px) {
  .value-card__title {
    font-size: 2rem;
  }
  .value-card__desc {
    font-size: 1.5rem;
  }
  .ref-card {
    padding: 4rem 3rem 0 3rem;
    min-height: 250px;
  }
  .hp-why-intro__grid {
    grid-template-columns: 3fr 2fr;
  }
  .why-slide__desc {
    margin-right: 0;
  }

  .why-card {
    height: 420px;
  }
}

@media (max-width: 1460px) {
  .value-card__title {
    font-size: 1.9rem;
  }

  .value-card__head {
    gap: 2rem;
  }
}

@media (max-width: 1100px) and (min-width: 700px) {
  .ref-card__desc {
    font-size: 1.5rem;
  }
}

/* 1030px – ipad */
@media (max-width: 1100px) {
  .hp-goals__content {
    font-size: 3.8rem;
  }

.hp-services__wrap {
  display: flex;
  gap: 0;
  flex-direction: column-reverse;
}

    .section-title.center {
        font-size: 5rem;
    }

  .section-title {
    font-size: 3.8rem;
  }
  .services-label {
    display: none;
  }

  .service-tab {
    color: #000;
    position: relative;
    padding-right: 20px;
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    font-size: 2.8rem;
  }
  .acc__head {
    font-size: 2.2rem;
  }

  .ref-card__value {
    font-size: 3.8rem;
  }

  .hp-why-intro__left {
    font-size: 3.8rem;
  }

  .why-slide__desc {
    font-size: 2.6rem;
  }


  .service-tab::before {
    content: url("../assets/arrow_down.svg"); /* strzałka w dół */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    background: #3cdc92;
    border-radius: 50%;
    width: 23px;
    height: 23px;
    transform: scale(1.1);
    margin-right: 16px;
  }

  .service-tab.is-active::after {
    content: url("../assets/arrow_up.svg");
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3cdc92;
    border-radius: 50%;
    width: 23px;
    height: 23px;
    margin-right: 8px;
    display: none;
  }

  .hp-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-services__wrap {
    grid-template-columns: 1fr;
  }
  .hp-services__tabs {
    order: 2;
  }
  .hp-services__panels {
    order: 1;
  }
  .hp-refs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-why-intro__grid {
    grid: none;
    display: inline-block;
  }
  .hp-why-intro__right {
    order: -1;
  }
  .why-card {
    min-height: 0;
  }
  .why-card__video {
    width: 40vw;
  }
  .why-slider__slides {
    grid-template-columns: 1fr;
  }

  .why-slider {
    margin: 12% 0;
  }
  .why-card {
    height: 370px;
  }

  .hp-why-intro {
    padding: 0;
  }
  .ref-card {
    min-height: 200px;
  }

  .contact-form-section {
    margin-bottom: -6rem;
    padding-bottom: 10rem;
  }
}

@media (min-width: 600px) {
  .hp-refs__progress {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 1100px) {
  .why-feature {
    grid-template-columns: 1fr 1fr; /* filmik i 1 rzecz */
  }

  .why-feature .why-slider {
    display: block; /* upewnij się, że pokazuje 1 */
  }

  .why-feature .why-slide {
    display: none; /* ukryj wszystkie */
  }

  .why-feature .why-slide:first-child {
    display: block; /* pokaż tylko pierwszy */
  }

  button.service-tab {
    display: flex;
    align-items: center;
  }

}

/* 📱 poniżej 600px – video na górze, pod spodem slider */
@media (max-width: 599px) {
  .why-feature {
    grid-template-columns: 1fr; /* 1 kolumna */
  }

  .why-feature .why-slide {
    display: block; /* normalny slider */
  }
}

/* 480px – telefon */
@media (max-width: 480px) {
  /* Values */
  .value-card {
    border-bottom: 0;
    padding-bottom: 5%;
  }
  .hp-values {
    padding-top: 10%;
  }
  .value-card:last-child {
    border-bottom: 1px solid var(--c-line); /* np. czarna linia */
  }
  .hp-values__grid {
    gap: 0;
  }
  .value-card__title {
    font-size: 2.4rem;
  }
  .value-card__desc {
    font-size: 1.6rem;
  }

  #service-panel-2 .service-panel__image img {
    object-position: 0;
  }
  .section-title.center {
    text-align: left;
    font-size: 6rem;
    line-height: 100%;
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 10%;
  }

  .service-tab {
    font-size: 2.4rem;
    display: flex;
    width: 100%;
  }
  .hp-services {
    padding-top: 0;
  }
  .hp-services__tabs {
    padding-top: 0;
    gap: 1.6rem;
    display: none;
  }
  .acc__head {
    padding: 4rem 2rem 2rem 2rem;
    text-align: left;
    padding-left: 5%;
    font-size: 2rem;
  }
  .acc__panel {
    display: block;
    font-size: 1.4rem;
    padding: 0;
    padding-bottom: 5%;
  }

  .section-title {
    font-size: 2.8rem;
    margin: 0;
  }

  .ref-card__value {
    font-size: 3.8rem;
  }

  .hp-why-intro__left {
    font-size: 3.2rem;
  }
  .hp-why-cards__grid {
    display: flex;
    flex-direction: column;
  }

  .btn-with-arrow {
    font-size: 1.5rem;
  }

  .why-slide__desc {
    font-size: 2.6rem;
  }

  .why-slider {
    border: 1px solid;
    border-radius: 20px;
    padding: 20px;
    margin-top: 0;
  }

  .why-slide__title::after {
    background: black;
  }
  .why-slide__desc {
    margin-bottom: 15%;
  }

  .hp-values__grid {
    grid-template-columns: 1fr;
  }
  .hp-refs__grid {
    grid-template-columns: 1fr;
  }

  .acc__head[aria-expanded="false"] {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-card__video {
    animation: none;
  }
}

/* CONTACT FORM */
/* ===== Sekcja kontaktu ===== */
h2.contact-form__title {
  line-height: 130%;
  font-size: 4.8rem;
  font-weight: 600;
}

.contact-form-section {
  --bg: #000; /* tło sekcji */
  --text: #ffffff; /* kolor tekstu */
  --green: #3cdc92; /* zielony brand */
  --chip-bg: #e7e1d7; /* tło pigułki z mailem (beż jak na zrzucie) */
  --chip-text: #0e2237; /* kolor tekstu pigułki */
  padding: clamp(40px, 6vw, 90px) 0;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  border-radius: 4rem 4rem 0 0;
  margin-top: 10%;
  position: relative;
  z-index: 2;
  padding-bottom: 2rem; /* Dodatkowy odstęp na dole */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin: 2% 4%;
}

.ref-card__value {
    letter-spacing: -1px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-title {
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 clamp(18px, 2.2vw, 28px);
  font-size: clamp(2.4rem, 3.6vw, 4.2rem);
}

a.mail-chip {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  align-items: center;
}

.mail-chip__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 16px;
    border-radius: 4px;
    background: var(--chip-bg);
    color: black;
    text-decoration: none;
    font-weight: 700;
    transition: all .2s;
    font-size: 3.8rem;
    height: 5rem;
    line-height: 1;

}

.mail-chip__icon {
  width: 5rem;
  height: 5rem;
  border-radius: 4px;
  background: var(--green);
  color: black; /* dla inline SVG – currentColor */
  display: inline-grid;
  place-items: center;
}

/* prawa kolumna – ogranicz szerokość formularza, jeśli trzeba */
.contact-right .wpcf7 {
  max-width: 880px;
  margin-left: auto;
}

.contact-form__left {
  margin-top: 5%;
}


.contact-form-section .wpcf7 form {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 26px 40px; 
}

.contact-form-section .wpcf7 form label {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.6rem;
  font-size: 1.4rem; 
  line-height: 1;
  font-weight: 600;
}

span.etykieta {
  display: flex;
  gap: 1rem;
}

/* ikona przy nagłówku labela */
.wpcf7 form label {
  position: relative;
  display: block;
  padding-left: 1.5rem; /* miejsce na ikonkę */
  margin-bottom: 1.5rem; /* odstęp między polami */
}

/* Pola */
.contact-form-section .wpcf7 input[type="text"],
.contact-form-section .wpcf7 input[type="tel"],
.contact-form-section .wpcf7 input[type="email"],
.contact-form-section .wpcf7 textarea {
    width: 100%;
    background: transparent;
    color: #fff;
    border: none;
    border-bottom: 2px solid #3cdc92;
    padding: 10px 0 12px;
    font-size: 2rem;
    outline: none;
    font-weight: 300;
}

.contact-form-section .wpcf7 textarea {
  max-height: 80px; /* np. zamiast 180px */
  resize: vertical; /* zostawiam możliwość powiększania */
}

.contact-form-section .wpcf7 ::placeholder {
  color: #8ea2a1;
  opacity: 0.95;
}
.contact-form-section .wpcf7 input:focus,
.contact-form-section .wpcf7 textarea:focus {
  border-bottom-color: #30dba0;
}

/* --- POZYCJONOWANIE WIERSZY (teraz po <p>) --- */
.contact-form-section .wpcf7 form > p:nth-of-type(1) {
  grid-column: 1 / -1;
} /* imię i nazwisko – full */
.contact-form-section .wpcf7 form > p:nth-of-type(2) {
  grid-column: 1 / 2;
} /* telefon – lewa połowa */
.contact-form-section .wpcf7 form > p:nth-of-type(3) {
  grid-column: 2 / 3;
} 

.contact-form-section .wpcf7 form > p:nth-of-type(4) {
  grid-column: 1 / -1;
} 

.contact-form-section .wpcf7 form > p:nth-of-type(5) {
  grid-column: 1 / 2;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
} 

.contact-form-section .wpcf7 form > p:nth-of-type(6) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
} 

input.wpcf7-form-control.wpcf7-submit.has-spinner, button.wpcf7-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: fit-content;
    padding: .8rem;
    font-size: 1.5rem;
    font-weight: 600;
    background-color: #dad5c8;
    border: 0;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: lowercase;
    font-weight: 700;
    font-family: "Epilogue", sans-serif;
    line-height: 1;
}

button.wpcf7-submit img {
    width: 12px;
    height: 12px;
    margin-left: 1.2rem;
}

button.wpcf7-submit:hover {
  background-color: #e5e0d3;
  transform: translateY(-2px);
}

button.wpcf7-submit:active {
  transform: translateY(0);
}

.wpcf7-not-valid-tip {
  color: #3cdc92;
  font-size: 1.5rem;
  font-weight: 400;
}

.wpcf7 form .wpcf7-response-output {
  margin: 2em 0.5em 1em;
  padding: 0;
  border: 0;
  color: #3cdc92;
}

.contact-form__right input, .contact-form__right textarea {
    font-family: 'epilogue';
}

@media (max-width: 640px) {
  .contact-form-section .wpcf7 form {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact-form-section .wpcf7 form label {
    grid-column: 1 / -1 !important; /* wszystko na całą szerokość */
  }
}

/* Posty */
.hp-blog {
  padding: clamp(40px, 6vw, 80px) 0;
}
.hp-blog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 3rem;
  border-bottom: 1px solid;
}
.hp-blog__list {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .hp-blog__list {
    gap: 20px;
  }
}


.blog-card {
  border-radius: 5rem;
  overflow: hidden;
  position: relative;
  background: #0b0f17;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-card__link {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
}

.blog-card__media {
  position: relative;
  height: 320px;
  margin: 0;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.blog-card__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 15%,
    rgba(0, 0, 0, 0.55) 75%
  );
  transition: transform 0.3s ease;
}
.blog-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 5rem 6rem;
    color: #ffffff;
    z-index: 3;
    padding-top: 10rem;
}
.blog-card__title {
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  margin-top: 0rem;
}

.blog-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20%;
}

.blog-card__excerpt {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 130%;
  margin: 0;
  opacity: 0.95;
  flex: 1;
  color: #ffffff;
}

.blog-card__row {
    flex-direction: column;
}
.blog-card__cta {
  align-self: flex-end;
  background: #ffffff;
  color: #142338;
  border-radius: 3px;
  font-weight: 700;
  transition: background-color 0.3s ease-out, color 0.3s ease-out, transform 0.3s ease;
  font-size: 1.5rem;
  padding: 2px 5px;
  display: flex;
  line-height: 1.5;
  gap: .5rem;
}
.blog-card:hover .blog-card__cta {
  background: #ffffff;
  color: #000000;
}

.btn-ghost {
  align-items: center;
  color: #142338;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
}

.arrow-icon {
  display: inline-flex; /* flex do centrowania */
  align-items: center;
  justify-content: center;
  width: 28px; /* rozmiar kwadratu */
  height: 28px;
  background: #3cdc92; /* zielone tło */
  border-radius: 4px; /* opcjonalnie zaokrąglenie rogów */
  margin-left: 8px; /* odstęp od tekstu */
}

.arrow-icon img {
  width: 14px; /* szerokość samej strzałki */
  height: auto;
  display: block;
}

.arrow-icon-blog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #1b6143 0%,
    /* najciemniejszy zielony po lewej */ #3cdc92 100%
      /* jaśniejszy zielony po prawej */
  );
  mix-blend-mode: multiply; /* nakładanie koloru na zdjęcie */
  pointer-events: none;
  opacity: 1;
  z-index: 2; /* dodany z-index, żeby był nad obrazkiem ale pod treścią */
  transition: all 0.3s ease-out; /* zmienione na all, żeby wszystkie właściwości się zmieniały */
}

.blog-card:hover .blog-card__media::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  opacity: 0.7; /* zmniejsona przezroczystość przy hoverze */
}

@media (max-width: 480px) {

.hp-goals__content {
    font-size: 2.8rem;
  }
  .hp-refs__grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px; /* miejsce nad paskiem */
  }
  .hp-refs__grid::-webkit-scrollbar {
    display: none;
  } /* ukryj pasek iOS/Chrome */

  .ref-card {
    flex: 0 0 75%; /* szerokość karty w widoku */
    scroll-snap-align: start;
    padding-right: 0;
    min-height: 240px;
  }

  .value-card__head {
    gap: 2.4rem;
  }

  /* pasek postępu */
  .hp-refs__progress {
    height: 6px;
    background: #e9e9e9;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
  }
  .hp-refs__progress .bar {
    display: block;
    height: 100%;
    width: 0;
    background: #3cdc92;
    border-radius: inherit;
    transition: width 0.15s linear;
  }

  .hp-why-intro__right {
    justify-content: left;
    margin: 3rem 0;
  }

  .hp-why-cards__grid {
    gap: 2rem;
  }
  .why-card {
    height: 157px;
    border-radius: 20px;
  }

  span.acc__title {
    width: 90%;
  }

  .btn-icon .icon {
    width: 15px;
    height: 15px;
  }

  .btn-icon {
    width: 25px;
    height: 25px;
  }

  .blog-card__content {
    padding: 3rem;
  }

  .blog-card__title {
    font-size: 2.4rem;
    line-height: 1;
  }


  h2.contact-form__title {
    font-size: 3.2rem;
  }

  /* Usunięcie marginesów wpływających na zaokrąglenie rogów */
  .contact-form-section {
    margin-bottom: 0;
    border-radius: 24px 24px 0 0; /* Mniejszy radius na mobile */
  }

  .contact-form-section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 7rem 2rem;
    padding-bottom: 4rem;
  }

  /* grid sekcji – jedna kolumna */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0; /* zabiera te 6% marginesu z desktopu */
  }

  /* tytuł i lewa kolumna bez nadmiarowych marginesów */
  .contact-form__left {
    margin-top: 0;
  }

  /* formularz CF7: jedna kolumna + pełna szerokość */
  .contact-form-section .wpcf7 form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-panel__image {
    height: 8rem;
  }

  .wpcf7 form label {
    padding-left: 0;
  }

  /* wszystkie wiersze formularza na pełną szerokość */
  .contact-form-section .wpcf7 form > p {
    grid-column: 1 / -1 !important;
  }

  /* pola na 100% (są już, ale dopinamy na wszelki wypadek) */
  .contact-form-section .wpcf7 input[type="text"],
  .contact-form-section .wpcf7 input[type="tel"],
  .contact-form-section .wpcf7 input[type="email"],
  .contact-form-section .wpcf7 textarea {
    width: 100%;
  }

  /* RODO text on mobile */
  .contact-form-section .wpcf7 form > p:nth-of-type(5) {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  /* Button on mobile */
  .contact-form-section .wpcf7 form > p:nth-of-type(6) {
    justify-content: center;
  }

  /* Smaller button on mobile */
  button.wpcf7-submit {
    padding: 12px 18px;
  }

  /* pigułka z mailem trochę mniejsza na mobile (opcjonalnie) */
  .mail-chip__text {
    font-size: 2.5rem;
  }

  .service-panel.is-active {
    padding-top: 2rem;
}

.acc__body {
    padding: 2rem;
}

.acc__body ul {
    padding-inline-start: 2rem;
}

.acc__icon {
    width: 24px;
    height: 24px;
}

.hp-goals {
    margin-top: 10rem;
}

.blog-card__excerpt .excerpt--desktop { display: none; }
.blog-card__excerpt .excerpt--mobile  { display: inline; }

.blog-card__row {
    gap: 3.2rem;
}

.blog-card__media {
    height: 400px;
}

.hp-services__panels {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

}

.service-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.service-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* podczas wychodzenia zostaw is-active + dodaj is-leaving => animacja do opacity 0 */
.service-panel.is-active.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}


@media (min-width: 2080px) {
.blog-card__media {
    height: 520px;
}
}