.zen-howto {
    background: #EFEDE6;
    padding: 32px 0px
}

.zen-howto__slider .swiper-slide{
  width: 100%;
}

.zen-howto__inner {
    width: 100%;
    margin: 0 auto
}

.zen-step { display:flex; flex-direction:column; justify-content: space-between;} 
.zen-step__media {
  display:flex;
  justify-content:center;
  align-items:center;
  /* margin: 12px 0; */
}
.zen-step__media img {
  max-width:100%;
  height:auto;
  display:block;
  position:relative;
}



.zen-step__media--bottom{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:192px;                  /* łatwo skalować obraz w % */
  max-height:60%;              /* opcjonalnie: niech nie zasłania zbyt wiele */
  display:flex; align-items:flex-end; justify-content:center;
  pointer-events:none;         /* żeby nie łapał klików */
  z-index:0;                   /* pod treścią */
}

.zen-step__media--bottom img{
  width:100%;                  /* skaluj po szerokości wrappera */
  height:auto;
}

.zen-step > *:not(.zen-step__media--bottom){
  position:relative;
  z-index:1;
}


.zen-howto__title {
    color: #111;
    text-align: left;
    font-family: Nunito;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 20px;
}

.how-to__download-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.how-to__download-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.how-to__download-btns img {
  width: 100%;
  height: auto;
  display: block;
}


.zen-howto .pagination_wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0
}

.zen-howto .zen-howto__pagination {
  background-color: #fff;
  border-radius: 999px;
  padding: 4px 8px; 
  display: flex;
  align-items: center;   
  justify-content: center;
  width: auto;           
  height: auto;        
}


.imgfag {
    background-color: white;
    padding: 8px;
    border-radius: 100%;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.zen-pill--flag {
    width: 200px;
    justify-content: flex-end;
    margin-left: -90px
}

.zen-howto__lead {
    color: #333;
    text-align: left;
    font-family: Nunito;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    max-width: 680px;
    margin: 0 auto 40px !important;
}

.zen-howto__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:20px;
  align-items:stretch;
  grid-auto-rows: 1fr;
}

.zen-step{
  position:relative;
  overflow:hidden;             
  background:#fff;
  border-radius:22px;
  width:100%;
  height:100%;              
  /* min-height:446px;             */
  padding:24px 18px 26px;
  margin-left:auto; margin-right:auto;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  box-shadow:0 0 0 1px rgba(0,0,0,.04) inset;
}


.zen-howto__intro{
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
}


.zen-howto__slider {
    display: none !important
}

.zen-step {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    width: 300px;
    height: 446px;
    max-height: 446px;
    padding: 24px 18px 26px;
    max-width: 303.844px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .04) inset;
}



.zen-step__badge {
    z-index: 9999;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 16px 24px;
    color: #FFF;
    text-align: center;
    font-family: Nunito;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.2px;
    max-width: 88px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

.zen-howto .zen-step__title {
    order: unset;
    width: 253.09px;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Nunito;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.zen-step__title {
    position: relative;
    margin-top: 54px;
    font-family: Nunito;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.25;
    color: #000
}

.zen-step__ui {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start
}

.zen-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    background: #F0EEE7;
    padding: 10px 12px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05) inset
}

.zen-pill--flag img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover
}

.zen-pill--flag {
    img {

        width: 40px;
        height: 40px;
    }
}

.zen-pill--flag span {
    font-family: Nunito;
    font-weight: 800;
    font-size: 14px;
    color: #111
}

.zen-pill--option {
    align-self: center;
    margin-right: -40px;
    gap: 12px;

    span {
        color: #000;
        font-family: Nunito;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        letter-spacing: 0.08px;
    }
}

.zen-step__amount {
    background: #F7F5EF;
    border-radius: 14px;
    padding: 15px 24px;
    font-family: Nunito;
    width: 200px;
    margin-right: -90px;
    text-align: left;
}

.zen-step__amount span {
    display: block;
    color: #A3A3A3;
    font-family: Nunito;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.2px;
}

.zen-step__amount strong {
    color: #000;
    font-family: Nunito;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.1px;
}

.zen-step__field {
    width: 100%;
    max-width: 260px;
    margin: 16px auto 0;
    text-align: left
}

.zen-step__field label {
    display: block;
    color: #727272;
    font-family: Nunito;
    font-size: var(--TextField-Standard-FontSize-Label, 15px);
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    /* 106.667% */
}

.zen-step__value {
    border-bottom: 1px solid #1A1A1A;
    color: #222;
    text-overflow: ellipsis;
    font-family: Nunito;
    font-size: 19px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
}

.zen-step__text {
    color: #222;
    text-align: center;
    font-family: Nunito;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.zen-step__btn {
    margin-top: 16px;
    display: inline-block;
    background: #22E243;
    color: #000;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: Nunito;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none
}

.zen-howto {
    padding-bottom: 0;

    .zen-howto__slider {
        margin: 0px;
        height: unset
    }
}

.zen-step {
    background-repeat: no-repeat;
    background-size: cover;
}

.zen-howto .zen-step__title {
    margin-top: unset
}

.zen-howto .zen-step__text {
    margin-bottom: 0px
}

.zen-step__amount {
    span {}
}

.zen-how-to__btn {
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    background: #22E243;
    display: block;
    text-align: center;
    line-height: 28px;
    padding: 16px 24px;
    border-radius: 30px;
    text-transform: uppercase;
    opacity: 1;
    transition: .2s all ease-in-out;
    border: 2px solid transparent;
}

.zen-how-to__btn:hover {
        transition: all .3s 
ease-in-out;
        border: 2px solid #000;
        background: #f7f7f7;
        color: #222;
        text-align: center;
        font-family: Nunito;
        box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, .15);
        background-image: url(https://www.zen.com/wp-content/themes/zen/images/deals-landing/patern.webp);
        background-position: center;
        background-size: cover;
        opacity: 1 !important;
        color: black !important;
}

@media(max-width:1080px) {
    .zen-how-to__btn{
        display:none;
    }

    .zen-howto__intro{
        margin:auto;
    }

    .zen-howto__grid {
        display: block; 
    }
    .zen-howto__grid .zen-step {
        display: none; 
    }

    .zen-howto__slider {
        display: block !important;
        padding: 0 calc(50% - 150px) !important;
    }

    .zen-howto__slider .swiper-slide {
        width: auto !important;
    }

    .zen-step {
        min-height: 446px;
        max-height: 446px;
    }

    .zen-howto__title {
        text-align: center;;
        font-size: 28px;
        line-height: 1.2;
        width: 303.844px;
        margin:auto;
        margin-bottom:24px;
    }

    .zen-howto__lead{
        text-align:center;
        font-size:14px;
        line-height: 18px;
        width: 254.008px;
    }

    .zen-howto {
        position: relative;
    }
    .zen-howto .pagination_wrap {
        min-height: 32px;
    }
    .zen-howto .pagination_wrap .zen-howto__pagination {
        margin: 0 !important
    }
}

@media (min-width:768px) {
    .zen-how-to__btn{
        font-size:16px;
    }
    .zen-howto__title {
        font-size: 24px;
        font-style: normal;
        font-weight: 800;
        line-height: 120%;
    }

    .zen-howto__slider .swiper-wrapper{
        justify-content: center;
    }
    
    .zen-howto__lead {
        font-size: 24px;
        font-weight: 500;
        line-height: 32px;
    }

    /* .zen-price {
        padding: 200px 0px
    } */
}

.zen-step__overlay{
    position:absolute;
    left:0;
    right:0;
    width:100%;
    box-sizing:border-box;
    font-family: Nunito, sans-serif;
    font-size:16px;
    line-height:24px;
    font-weight: 500;
    text-align:center;
    pointer-events:none;
}
.zen-step__overlay--top{ top:8px; }
.zen-step__overlay--center{ top:50%; transform:translateY(-50%); }
.zen-step__overlay--bottom{ bottom:8px; }

.zen-step__overlay-align--left{ text-align:left; }
.zen-step__overlay-align--center{ text-align:center; }
.zen-step__overlay-align--right{ text-align:right; }

@media (max-width:480px){
.zen-step__overlay{ font-size:13px; }
}

@media (min-width:1200px){
    .zen-howto__grid {
        padding:0 20px;
    }
}
@media (max-width:768px){
.zen-howto__lead{
 color: #222;
text-align: center;
font-family: Nunito;
font-size: 17px;
font-style: normal;
font-weight: 500;
line-height: 23px
}

}