/* ==========================================================================
   Lista Zdrowia – Compensa Multi Zdrowie
   Wartości odwzorowane 1:1 z motywu produkcji (generic-landing-page/main.css).
   Breakpointy jak na produkcji: 560 / 913 / 1045 / 1090 / 1241 / 1399 / 1620 px,
   widok mobilny: do 912.98px.
   ========================================================================== */

:root {
  --green: #88ca11;
  --green-dark: #00853d;
  --tint: #f5fbec;
  --grey-line: #f2f2f2;
  --gutter: 12px;
}

/* Reset ----------------------------------------------------------------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  color: #000;
  background: #fff;
}

h1, h2, h3, figure, blockquote { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* Typografia ------------------------------------------------------------ */

.text { font-family: "Roboto", sans-serif; color: #000; line-height: 1.5; }

.text--header { margin: 0; font-family: "Nunito", sans-serif; }

.text--header-h2 { margin-bottom: 32px; font-size: 32px; text-align: center; }

@media (max-width: 912.98px) {
  .text--header-h2 { margin-bottom: 12px; font-size: 22px; }
}

/* Siatka ---------------------------------------------------------------- */

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 560px)  { .container { max-width: 670px; } }
@media (min-width: 913px)  { .container { max-width: 800px; } }
@media (min-width: 1045px) { .container { max-width: 890px; } }
@media (min-width: 1090px) { .container { max-width: 930px; } }
@media (min-width: 1241px) { .container { max-width: 1050px; } }
@media (min-width: 1399px) { .container { max-width: 1200px; } }
@media (min-width: 1620px) { .container { max-width: 1408px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--gutter) * -1);
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: var(--gutter);
}

@media (min-width: 913px) {
  .col-xs-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 1045px) {
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.33333%; }
}

@media (min-width: 1241px) {
  .col-lg-5 { flex: 0 0 auto; width: 41.66667%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333%; }
}

/* Przyciski ------------------------------------------------------------- */

.button {
  padding: 18px 59px;
  font: 700 16px/1.5 "Nunito", sans-serif;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  background-color: var(--green);
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* jeden hover dla wszystkich przycisków na stronie */
.button:hover,
.button:focus-visible {
  color: #fff;
  background-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 133, 61, .25);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 133, 61, .2);
}

.button:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }

/* drugi przycisk („Znajdź agenta”): obrys, ten sam hover */
.button--outline {
  color: var(--green-dark);
  background-color: #fff;
  box-shadow: inset 0 0 0 2px var(--green-dark);
}

.button--outline:hover,
.button--outline:focus-visible {
  box-shadow: inset 0 0 0 2px var(--green-dark), 0 8px 16px rgba(0, 133, 61, .25);
}

/* przyciski w sekcjach: blok o szerokości treści */
.flexi-content__button,
.button--section {
  display: block;
  width: max-content;
}

@media (max-width: 912.98px) {
  .flexi-content__button,
  .button--section {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    text-align: center;
  }
}

/* Logo + hero ----------------------------------------------------------- */

.header-menu { position: relative; }

.header-menu__logo {
  position: absolute;
  top: 51px;
  left: 0;
  z-index: 3;
}

.header-menu__logo img { display: block; width: 175px; height: auto; }

.top-navigation {
  padding: 32px 0 142px;
  background: url("../img/hero.jpg") center / cover no-repeat;
}

.baner-top {
  width: 100%;
  margin-top: 262px;
  padding: 32px;
  background-color: #fff;
  border-bottom: 6px solid var(--green-dark);
  border-radius: 24px;
}

@media (min-width: 1045px) { .baner-top { width: 66.66667%; } }
@media (min-width: 1090px) { .baner-top { width: 58.33333%; } }
@media (min-width: 1241px) { .baner-top { width: 41.66667%; } }

.baner-top__header { font-size: 36px; color: var(--green); }

.baner-top__description p { margin: 1em 0; }

.baner-top__box-button { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 0; }

.baner-top__box-button .button { padding: 18px 36px; }

@media (max-width: 912.98px) {
  .top-navigation {
    margin-bottom: 200px;
    padding-bottom: 0;
    background-position: top;
  }

  .baner-top {
    position: relative;
    top: 150px;
    margin-top: 0;
  }

  .baner-top__header { font-size: 21px; }

  .baner-top__box-button { justify-content: center; }

  .baner-top__box-button .button,
  .three-packages__button--double .button { width: 100%; text-align: center; }
}

@media (max-width: 559.98px) {
  .baner-top {
    border-left: 1px solid var(--green-dark);
    border-right: 1px solid var(--green-dark);
  }
}

/* Playlista (flexi-content) --------------------------------------------- */

.flexi-content { margin: 64px 0; }

.flexi-content img { max-width: 100%; height: auto; }

.flexi-content__row {
  flex-direction: row-reverse;
  margin-top: 120px;
}

.flexi-content__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flexi-content__header { margin-bottom: 24px; font-size: 32px; }

.flexi-content__description p { margin: 1em 0; }

.flexi-content__button { margin-top: 43px; }

.flexi-content__images-box-mobile { display: none; }

@media (max-width: 912.98px) {
  .flexi-content { margin-top: 56px; }

  .flexi-content__row { margin-top: 56px; }

  .flexi-content__header { text-align: center; }

  .flexi-content__images-box { display: none; }

  .flexi-content__images-box-mobile {
    display: block;
    margin-top: 48px;
    text-align: center;
  }

  .flexi-content__button { margin-top: 23px; }
}

/* Sekcje z kartami (three-packages) ------------------------------------- */

.three-packages__background {
  padding: 56px 0 40px;
  background-color: var(--tint);
}

.three-packages__basic { margin: 38px 0 120px; }

.three-packages__border { margin-top: 56px; }

.three-packages__additional-content { margin-bottom: 40px; text-align: center; }

.three-packages__additional-content p { margin: 1em 0; }

.three-packages__col { margin-bottom: 16px; }

.three-packages__wraper {
  min-height: 100%;
  padding: 32px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .05);
}

.three-packages__icon-box {
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}

.three-packages__icon { width: 84px; height: 84px; }

/* karty na tle: mniejszy odstęp i ikona 80px (także na telefonie) */
.three-packages__wraper .three-packages__icon-box { padding-bottom: 24px; }
.three-packages__wraper .three-packages__icon { width: 80px; height: 80px; }

/* zdjęcia zespołu: jasny pierścień i zielona obwódka */
.three-packages__wraper .three-packages__icon--person {
  box-sizing: border-box;
  width: 130px;
  height: 130px;
  padding: 8px;
  object-fit: cover;
  background: var(--tint);
  border: 3px solid var(--green);
  border-radius: 50%;
}

.three-packages__text-header {
  display: block;
  width: 100%;
  font-size: 21px;
  font-weight: 600;
  text-align: center;
}

.three-packages__text-box { display: block; font-size: 16px; text-align: center; }

.three-packages__text-box p { margin: 1em 0; }

.three-packages__button .button { margin: auto; }

.three-packages__button--double { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.three-packages__button--double .button { margin: 0; }

@media (max-width: 912.98px) {
  .three-packages__icon-box { padding-bottom: 9px; }

  .three-packages__icon { width: 64px; height: 64px; object-fit: contain; }

  .three-packages__text-box { font-size: 14px; }
}

/* Opinie ---------------------------------------------------------------- */

.three-packages__container--border {
  padding: 40px 64px 35px;
  border-bottom: 6px solid var(--green-dark);
  border-radius: 24px;
  box-shadow: 0 0 12px var(--grey-line);
}

.three-packages__quote { padding-top: 0; text-align: center; }

/* zielony cudzysłów nad każdą opinią */
.three-packages__quote::before {
  content: "\201D";
  display: block;
  height: 48px;
  font: 700 80px/1 "Nunito", sans-serif;
  color: var(--green);
}

.three-packages__quote p { margin: 1em 0; }

@media (max-width: 912.98px) {
  .three-packages__quote { padding-top: 9px; font-size: 14px; }
}

/* Korzyści (product-polisy) --------------------------------------------- */

.product-polisy {
  padding: 56px 0;
  background-color: var(--tint);
}

.product-polisy__header { margin-bottom: 103px; }

.product-polisy__list { row-gap: 48px; }

.product-polisy__box {
  display: flex;
  height: 133px;
  padding: 32px 38px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .05);
}

/* kolumna zdjęcia zwęża się przy dłuższym tekście, jak na produkcji */
.product-polisy__box-image {
  position: relative;
  width: 170px;
  height: 156px;
  margin-right: 10px;
}

.product-polisy__image {
  position: absolute;
  top: -77px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-polisy__header-name-item {
  display: block;
  padding-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.product-polisy__text { margin: 0; font-size: 16px; color: #57575c; }

/* na desktopie produkcja nie pokazuje przycisku pod tymi sekcjami */
.product-polisy__button { display: none; }

@media (max-width: 1089.98px) {
  .product-polisy__box { height: 160px; padding: 22px 28px; }

  .product-polisy__box-image { height: 160px; }

  .product-polisy__image { top: 38%; transform: translateY(-50%); }

}

/* telefon: przewijany poziomo slider, po jednej karcie */
@media (max-width: 912.98px) {
  .product-polisy .container { padding: 0; }

  .product-polisy__header { margin-bottom: 48px; }

  .product-polisy__list {
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
    padding: 100px 12px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
    scrollbar-width: none;
  }

  .product-polisy__list::-webkit-scrollbar { display: none; }

  /* wysokość slidera jak na produkcji: wyznacza ją pierwszy slajd (285px),
     dłuższe opisy mieszczą się w dolnym odstępie listy */
  .product-polisy__list { padding-bottom: 24px; }

  .product-polisy__list > .product-polisy__col {
    flex: 0 0 85%;
    width: 85%;
    padding: 0;
    scroll-snap-align: start;
  }

  .product-polisy__box {
    display: block;
    height: 100%;
    padding: 24px;
  }

  .product-polisy__header { padding: 0 12px; }

  .product-polisy__box-image { width: 100%; height: 100px; margin: 0 0 16px; }

  .product-polisy__image { top: -100px; height: 196px; transform: none; }

  .product-polisy__button { display: block; padding: 0 12px; }

  .product-polisy__button .button { margin-top: 8px; }
}

/* Materiały ------------------------------------------------------------- */

.upload-document { margin: 120px 0 64px; }

.upload-document__sub-header {
  max-width: 650px;
  margin: 0 auto 8px;
  text-align: center;
}

/* karty materiałów o równej wysokości w rzędzie */
.upload-document li { display: flex; }

.upload-document__column {
  display: flex;
  flex: 1;
  align-items: center;
  margin-top: 21px;
  padding: 40px 32px;
  color: inherit;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 3px 6px 18px var(--grey-line);
}

.upload-document__wrap-icon { flex: none; padding-right: 35px; }

.upload-document__big-icon { width: 44px; height: 53px; }

.upload-document__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition-duration: .4s;
}

.upload-document__column:hover .upload-document__text { color: var(--green); }

@media (max-width: 912.98px) {
  .upload-document { margin: 80px 0 32px; }

  .upload-document__column { margin-top: 0; padding: 24px; }

  .upload-document li + li .upload-document__column { margin-top: 12px; }

  .upload-document__wrap-icon { padding-right: 23px; }

  .upload-document__big-icon { width: 32px; height: 38px; }

  .upload-document__text { font-size: 14px; }
}

/* Stopka ---------------------------------------------------------------- */

.footer {
  padding: 75px 0 66px;
  font-size: 18px;
  color: #838383;
  background-color: var(--grey-line);
}

.footer__inner { display: flex; justify-content: space-between; }

.footer__inner p { max-width: 80%; margin: 1em 0; line-height: 1.5; }

.footer__icons { display: flex; align-items: flex-start; }

/* ikony zaczynają się linię niżej niż blok, jak na produkcji */
.footer__icon { display: block; margin-right: 32px; padding-top: 21px; }

.footer__icon:last-child { margin-right: 0; }

.footer__icon img { display: block; width: 32px; height: 32px; }

@media (max-width: 1089.98px) {
  .footer__inner p { max-width: 70%; }
}

@media (max-width: 912.98px) {
  .footer {
    margin-top: 80px;
    padding: 22px 0 34px;
    font-size: 14px;
  }

  .footer__inner { flex-wrap: wrap; gap: 20px; }

  .footer__inner p { max-width: 100%; }

  .footer__icon { padding-top: 16px; }
}

/* Przyklejone przyciski (telefon) --------------------------------------- */

.sticky-cta { display: none; }

@media (max-width: 912.98px) {
  .sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    gap: 12px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background-color: #fff;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, .08);
    visibility: hidden;
    transform: translateY(100%);
    transition: transform .3s ease, visibility 0s linear .3s;
  }

  .sticky-cta.is-visible {
    visibility: visible;
    transform: translateY(0);
    transition: transform .3s ease;
  }

  .sticky-cta .button {
    flex: 1;
    padding: 14px 8px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

  /* stopka nie chowa się pod paskiem */
  .footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .sticky-cta.is-visible { transition: none; }
}
