/* =========================================================
   STRONA GŁÓWNA — TOKENS / VARIABLES
   ========================================================= */

:root {
  /* =========================================================
     SEKCJA 1 — TOKENS
     ========================================================= */
  --s1-bg: transparent;
  --s1-color: var(--color-text);
  --s1-pad-y: 50px;

  --s1-title-mb: clamp(36px, 4vw, 76px);
  --s1-title-font: var(--font-heading);
  --s1-title-fw: var(--heading-fw);
  --s1-title-color: var(--dark-grey);
  --s1-title-ls: -0.03em;
  --s1-title-fs: clamp(44px, 5.2vw, 92px);
  --s1-title-lh: 1.03;
  --s1-title-maxw: min(30ch, 100%);

  --s1-grid-cols: minmax(0, 1.15fr) minmax(0, 0.85fr);
  --s1-grid-gap-col: clamp(40px, 8vw, 140px);
  --s1-grid-gap-row: clamp(28px, 4vw, 44px);

  --s1-p-font: var(--font-body);
  --s1-p-fs: var(--p-md-fs);
  --s1-p-lh: 1.75;
  --s1-p-opacity: 0.72;
  --s1-p-maxw: 100%;
  --s1-left-gap: clamp(18px, 2.2vw, 28px);

  --s1-lead-font: var(--font-body);
  --s1-lead-fw: 300;
  --s1-lead-fs: clamp(22px, 2.2vw, 34px);
  --s1-lead-lh: 1.35;
  --s1-lead-ls: -0.02em;
  --s1-lead-opacity: 0.88;
  --s1-lead-maxw: min(26ch, 100%);

  /* =========================================================
     SEKCJA 2 — TOKENS
     ========================================================= */
  --s2-bg: var(--s-white);
  --s2-pad-top: 100px;

  --s2-header-pb: 96px;
  --s2-title-mb: clamp(16px, 1.5vw, 46px);
  --s2-title-font: var(--font-heading);
  --s2-title-fw: var(--heading-fw);
  --s2-title-color: var(--primary-blue, #012b63);
  --s2-title-ls: -0.03em;
  --s2-title-fs: var(--h2-size);
  --s2-title-lh: 1.03;
  --s2-title-maxw: min(30ch, 100%);

  --s2-col-pad: 5vw;
  --s2-spacer-h: 288px;
  --s2-media-h: clamp(420px, 62vh, 680px);
  --s2-content-pt: 24px;

  --s2-lead-font: "Poppins", sans-serif;
  --s2-lead-fs: clamp(20px, 2vw, 30px);
  --s2-lead-lh: 1.45;
  --s2-lead-color: var(--dark-grey);

  --s2-actions-mt: 64px;

  --s2-btn-text-align: left;
  --s2-btn-pad-y: 16px;
  --s2-btn-pad-left: 32px;
  --s2-btn-pad-right: 96px;
  --s2-btn-bgpos: 86% 42%;
  --s2-btn-bgpos-hover: 90% 42%;
  --s2-btn-width: auto;
  --s2-btn-fs: inherit;
  --s2-btn-style: normal;
  --s2-btn-secondary-pad-left: 0px;

  /* =========================================================
     SEKCJA 3 — TOKENS (POKOJE SLIDER)
     ========================================================= */
  --s3-bg: var(--body-ecru);

  --s3-overlap-mt: -240px;
  --s3-overlap-pt: 240px;

  --s3-header-pb: 96px;
  --s3-title-color: var(--dark-grey);
  --s3-title-fs: var(--h2-size);
  --s3-title-lh: var(--h2-lh);
  --s3-title-ls: -0.02em;
  --s3-title-fw: var(--heading-fw);
  --s3-title-maxw: min(30ch, 100%);

  --s3-mask-w: 70vw;
  --s3-slide-pad-x: 5vw;
  --s3-media-h: 58vh;
  --s3-content-pt: 32px;

  --s3-col-title-w: 40%;
  --s3-col-desc-w: 60%;
  --s3-col-gap: 16px;

  --s3-dur: 1000ms;
  --s3-ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --s3-fade-dur: 450ms;

  --s3-img-scale-idle: 0.9;
  --s3-img-scale-active: 1.1;

  --s3-text-color: var(--dark-grey);
  --s3-nav-color: var(--black);

  --s3-hotspot-w: 10vw;
  --s3-hotspot-h: 45.5vh;
  --s3-hotspot-pt: 10vh;
  --s3-hotspot-top: 24.5vh;

  --s3-label-w: 120px;
  --s3-label-right-top: 138px;
  --s3-label-left-bottom: 112px;

  --s3-arrow-w: 10vw;
  --s3-arrow-pt-prev: 75vh;
  --s3-arrow-pt-next: 10vh;

  --s3-mask-ml: 5vw;
  --s3-slide-pad-right: 5vw;

  /* =========================================================
     SEKCJA SEO — TOKENS
     ========================================================= */
  --seo-bg: var(--white);
  --seo-pad-y: var(--section-padding);

  --seo-maxw: 100%;

  --seo-p-fs: var(--p-md-fs);
  --seo-p-lh: 1.75;
  --seo-p-opacity: 0.8;
  --seo-p-mb: 14px;

  --seo-strong-fw: 600;

  --seo-h2-color: var(--dark-grey);
  --seo-h2-align: center;
  --seo-h2-font: var(--font-heading);
  --seo-h2-fw: var(--heading-fw);
  --seo-h2-fs: var(--h3-size);
  --seo-h2-lh: 1.2;
  --seo-h2-ls: -0.01em;
  --seo-h2-mt: 28px;
  --seo-h2-mb: 14px;

  --seo-list-pl: 18px;
  --seo-list-mt: 10px;
  --seo-list-mb: 18px;
  --seo-li-mb: 10px;

  --seo-link-color: var(--color-text);
  --seo-link-hover: var(--color-text);
}

/* =========================================================
   STRONA GŁÓWNA — RESPONSIVE TOKENS
   ========================================================= */

@media (max-width: 992px) {
  :root {
    --s1-grid-cols: 1fr;
    --s1-title-maxw: 100%;
    --s1-p-maxw: 100%;
    --s1-lead-maxw: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --s1-p-maxw: 100%;
    --s1-lead-maxw: 100%;
  }
}

@media (max-width: 991px) {
  :root {
    --s2-pad-top: 96px;
    --s2-header-pb: clamp(3rem, 5vw, 4.5rem);
    --s2-spacer-h: 144px;
    --s2-media-h: clamp(360px, 50vh, 520px);
    --s2-actions-mt: 32px;
    --s2-btn-text-align: center;
    --s2-btn-secondary-border: 2px solid var(--black);
    --s2-btn-secondary-border-radius: 999px;
    --s2-btn-secondary-pad-left: 32px;
    --s2-lead-fs: clamp(18px, 2vw, 24px);
    --s2-lead-lh: 1.5;
  }
}

@media (max-width: 767px) {
  :root {
    --s2-pad-top: 64px;
    --s2-header-pb: clamp(3rem, 5vw, 4.5rem);
    --s2-media-h: clamp(380px, 60vh, 560px);
    --s2-lead-fs: clamp(18px, 4.2vw, 22px);
    --s2-lead-lh: 1.55;
  }
}

@media (max-width: 479px) {
  :root {
    --s2-header-pb: clamp(3rem, 5vw, 4.5rem);
    --s2-spacer-h: 64px;
    --s2-media-h: clamp(320px, 48vh, 460px);
    --s2-btn-bgpos: 80% 42%;
    --s2-btn-bgpos-hover: 86% 42%;
    --s2-btn-width: 100%;
    --s2-btn-fs: 4.5vw;
    --s2-btn-style: italic;
    --s2-lead-fs: clamp(17px, 4.6vw, 20px);
    --s2-lead-lh: 1.6;
  }
}

@media (max-width: 991px) {
  :root {
    --s3-overlap-mt: -128px;
    --s3-overlap-pt: 128px;
    --s3-header-pb: 48px;
    --s3-media-h: 48vh;
    --s3-arrow-pt-prev: 60vh;
  }
}

@media (max-width: 479px) {
  :root {
    --s3-mask-w: 85vw;
    --s3-media-h: 38vh;
    --s3-hotspot-w: 8vw;
    --s3-hotspot-h: 38vh;
  }
}

@media (max-width: 479px) {
  :root {
    --seo-maxw: 100%;
    --seo-border-offset: 16px;
    --seo-h2-fs: clamp(20px, 5.2vw, 26px);
    --seo-p-lh: 1.7;
    --seo-list-pl: 16px;
  }
}





/* =========================================================
   SEKCJA 1
   ========================================================= */

/* Sekcja */
.home-intro {
  background: var(--s1-bg);
  color: var(--s1-color);
  padding-block: var(--s1-pad-y);
  text-align: left;
  overflow-x: clip;
}

.home-intro,
.home-intro * {
  box-sizing: border-box;
}

.home-intro__inner {
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: left;
}

/* Nagłówek */
.home-intro__heading {
  margin: 0 0 var(--s1-title-mb);

  font-family: var(--s1-title-font);
  font-weight: var(--s1-title-fw);
  color: var(--primary-blue);
  letter-spacing: var(--s1-title-ls);

  font-size: var(--s1-title-fs);
  line-height: var(--s1-title-lh);

  max-width: var(--s1-title-maxw);

  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.title-wave {
  display: flex;
  justify-content: left;
  /*margin-top: 5px;*/
  margin-bottom: 20px;
  color: var(--primary-blue, #012b63);
  line-height: 0;
}

.title-wave__svg {
  width: 78px;
  height: auto;
  display: block;
}

/* Układ */
.home-intro__grid {
  display: flex;
  grid-template-columns: var(--s1-grid-cols);
  /*column-gap: var(--s1-grid-gap-col);*/
  align-items: start;

  width: 100%;
  min-width: 0;
}

.home-intro__left {
  display: grid;
  gap: var(--s1-left-gap);
  min-width: 0;
}

.home-intro__right {
  min-width: 0;
}

/* Teksty po lewej */
.home-intro__p {
  margin: 0;

  font-family: var(--s1-p-font);
  font-size: clamp(1rem, 1.15vw, 1.375rem);
  line-height: var(--s1-p-lh);
  opacity: var(--s1-p-opacity);

  max-width: var(--s1-p-maxw);

  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Lead po prawej */
.home-intro__lead {
  margin: 0;

  font-family: var(--s1-lead-font);
  font-weight: var(--s1-lead-fw);
  font-size: var(--s1-lead-fs);
  line-height: var(--s1-lead-lh);
  letter-spacing: var(--s1-lead-ls);
  opacity: var(--s1-lead-opacity);

  max-width: var(--s1-lead-maxw);

  margin-left: auto;
  text-align: left;

  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* RWD */
@media (max-width: 992px) {
  .home-intro__grid {
    row-gap: var(--s1-grid-gap-row);
  }

  .home-intro__lead {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .home-intro__p,
  .home-intro__lead {
    overflow-wrap: anywhere;
  }
}

/* =========================================================
   SEKCJA ATUTY
   ========================================================= */

.home-highlights {
  background: var(--body-ecru);
}

.home-highlights__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-highlights .container {
  padding-bottom: 100px;
}

.home-highlights__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.home-highlights__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 150px;
  padding: 6px 26px 4px;
  text-align: center;
}

.home-highlights__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 2px;
  height: calc(100% - 20px);
  background: rgba(60, 58, 52, 0.12);
}

.home-highlights__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prime-blue);
  flex-shrink: 0;
}

.home-highlights__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-highlights__title {
  margin: 0 0 4px;
  color: #3c3a34;
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(19px, 1.35vw, 28px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.home-highlights__value {
  margin: 0;
  min-height: 1.2em;
  color: #3c3a34;
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 400;
  line-height: 1.05;
}

.home-highlights__value--empty {
  visibility: hidden;
}

@media (max-width: 991px) {
  .home-highlights .container {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .home-highlights__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-highlights__item {
    min-height: 132px;
    padding: 14px 18px;
  }

  .home-highlights__item:nth-child(3)::after {
    display: none;
  }

  .home-highlights__item:nth-child(-n + 3) {
    border-bottom: 2px solid rgba(60, 58, 52, 0.12);
  }

  .home-highlights__icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 767px) {
  .home-highlights__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-highlights__item {
    min-height: 122px;
    padding: 16px 14px;
  }

  .home-highlights__item::after {
    display: none;
  }

  .home-highlights__item:nth-child(odd) {
    border-right: 2px solid rgba(60, 58, 52, 0.12);
  }

  .home-highlights__item:nth-child(-n + 4) {
    border-bottom: 2px solid rgba(60, 58, 52, 0.12);
  }

  .home-highlights__icon {
    width: 44px;
    height: 44px;
  }

  .home-highlights__title,
  .home-highlights__value {
    font-size: 22px;
  }
}

@media (max-width: 479px) {
  .home-highlights__list {
    grid-template-columns: 1fr;
  }

  .home-highlights__item {
    min-height: auto;
    padding: 18px 10px;
  }

  .home-highlights__item:nth-child(odd) {
    border-right: 0;
  }

  .home-highlights__item:not(:last-child) {
    border-bottom: 1px solid rgba(60, 58, 52, 0.12);
  }

  .home-highlights__icon {
    width: 42px;
    height: 42px;
  }

  .home-highlights__title,
  .home-highlights__value {
    font-size: 20px;
  }
}

/* =========================================================
   SEKCJA 2
   ========================================================= */

.home-section2 {
  padding-top: var(--s2-pad-top);
  background: #fafaf8;
}

/* header */
.home-section2__header {
  padding-bottom: var(--s2-header-pb);
}

.home-section2__title {
  margin: 0 0 var(--s2-title-mb);

  font-family: var(--s2-title-font);
  font-weight: var(--s2-title-fw);
  color: var(--s2-title-color);
  letter-spacing: var(--s2-title-ls);

  font-size: var(--s2-title-fs);
  line-height: var(--s2-title-lh);

  max-width: var(--s2-title-maxw);

  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.home-section2__item--wrapper {
  display: flex;
  justify-content: flex-start;
}

.home-section2__lead {
  font-family: var(--s2-lead-font);
  font-size: clamp(1rem, 1.15vw, 1.375rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  line-height: var(--s2-lead-lh);
  color: var(--s2-lead-color);
  opacity: 1;
  font-weight: 400;
  max-width: 100%;
  margin: 0;
}

/* features list */
.home-section2__features {
  display: flex;
  flex-direction: column;
  gap: 6.25rem;
}

/* pojedynczy blok */
.home-section2__feature {
  background-color: #fafaf8;
}

.home-section2__feature + .home-section2__feature {
  padding-top: 0;
}

.home-section2__container {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 28rem);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.home-section2__container--reverse {
  grid-template-columns: minmax(260px, 28rem) minmax(280px, 1fr);
}

/* media */
.home-section2__media {
  margin: 0;
  width: 100%;
  height: var(--s2-media-h);
  overflow: hidden;
  border-radius: 12px;
}

.home-section2__media--portrait {
  justify-self: stretch;
}

.home-section2__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* content */
.home-section2__content {
  max-width: 26rem;
}

.home-section2__heading {
  margin: 0 0 1rem;
  font-family: var(--s2-title-font);
  font-size: var(--h3-size);
  line-height: var(--s2-title-lh);
  letter-spacing: var(--s2-title-ls);
  font-weight: var(--s2-title-fw);
  color: var(--s2-title-color);
}

.home-section2__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--p-md-fs);
  line-height: 1.75;
  opacity: 0.72;
  color: #3c3a34;
}

.home-section2__actions {
  margin-top: var(--s2-actions-mt);
}

/* =========================================================
   SEKCJA 2 — PRZYCISK
   ========================================================= */

.home-section2__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  border-radius: 999px;
  border: 2px solid rgba(28, 29, 32, 0.18);
  border-color: #012b63;

  padding: 0.92em 1.8em;
  overflow: hidden;

  gap: 0;
  background: transparent;
  color: var(--primary-blue, #012b63);
  text-decoration: none;

  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.1;
  flex-shrink: 0;
}

.home-section2__btn-ico {
  position: absolute;
  left: 1.15em;
  top: 50%;
  transform: translate(-0.55em, -50%);

  width: 1.05em;
  height: 1.05em;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition:
          transform 0.3s cubic-bezier(0.7, 0, 0.3, 1),
          opacity 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.home-section2__btn-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-section2__btn-text {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  text-align: center;
  white-space: nowrap;
}

.home-section2__button:hover .home-section2__btn-ico {
  opacity: 1;
  transform: translate(0, -50%);
}

.home-section2__button:hover .home-section2__btn-text {
  transform: translateX(0.78em);
}

/* =========================================================
   SEKCJA 2 — RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  .home-section2__container,
  .home-section2__container--reverse {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .home-section2__content {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .home-section2__container,
  .home-section2__container--reverse {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .home-section2__content {
    max-width: 100%;
  }

  .home-section2__heading {
    margin-bottom: 0.75rem;
  }

  .home-section2__container--reverse .home-section2__media {
    order: 1;
  }

  .home-section2__container--reverse .home-section2__content {
    order: 2;
  }

  .home-section2__button {
    width: auto;
    min-width: 0;
    align-self: flex-start;
  }
}

@media (max-width: 479px) {
  .home-section2__media {
    height: var(--s2-media-h);
  }
}

/* =========================================================
   SEKCJA SEO
   ========================================================= */

.home-seo {
  background: var(--seo-bg);
  padding-top: var(--seo-pad-y);
  padding-bottom: var(--seo-pad-y);
}

.home-seo__box {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--seo-maxw);
}

.home-seo__box p {
  font-size: var(--seo-p-fs);
  line-height: var(--seo-p-lh);
  opacity: var(--seo-p-opacity);
  margin-bottom: var(--seo-p-mb);
}

.home-seo__box strong {
  font-weight: var(--seo-strong-fw);
  opacity: 1;
}

.home-seo__box h2 {
  text-align: var(--seo-h2-align);
  font-family: var(--seo-h2-font);
  font-weight: var(--seo-h2-fw);
  font-size: var(--seo-h2-fs);
  line-height: var(--seo-h2-lh);
  letter-spacing: var(--seo-h2-ls);
  color: var(--seo-h2-color);
  margin-top: var(--seo-h2-mt);
  margin-bottom: var(--seo-h2-mb);
  text-align: left;
}

.home-seo__box ul {
  margin: var(--seo-list-mt) 0 var(--seo-list-mb);
  padding-left: var(--seo-list-pl);
}

.home-seo__box li {
  font-size: var(--seo-p-fs);
  line-height: var(--seo-p-lh);
  opacity: var(--seo-p-opacity);
  margin-bottom: var(--seo-li-mb);
}

.home-seo__box li strong {
  font-weight: var(--seo-strong-fw);
}

.home-seo__box a {
  color: var(--seo-link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition:
          color 0.25s ease,
          opacity 0.25s ease;
}

.home-seo__box a:hover,
.home-seo__box a:focus-visible {
  color: var(--seo-link-hover);
  opacity: 1;
}

.seo-readmore__toggle {
  margin-top: 0.15rem;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--seo-p-fs);
  line-height: 1.2;
  color: var(--seo-link-color);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  opacity: 1;
}