.top-bar {
    background-color: var(--dark);
}
.intro .container{
    padding-top: 0 !important;
}
.intro .container.second{
    padding-bottom: 0 !important;
}
h1 {
    margin-top: var(--xl-spacing);
}
.intro > .center.wrapper.margins {
    position: relative;
}
.intro > .center.wrapper.margins *:not(.background) {
    position: relative;
    z-index: 2;
}
.intro > .center.wrapper.margins .background {
    width: 100%;
}


section.start * {
    color: #000;
}
.start, .intro, .soc-med-cta {
    background-color: var(--light);
}
section:not(.footer) h3, h1 {
    margin-bottom: var(--m-spacing);
}
section:not(.footer) .grid {
    row-gap: var(--s-spacing);
}
.start, .intro h4, section:not(.footer) .grid.double h4.second {
    margin-top: var(--s-spacing)
}

.podstr-main .cell{
    width: 100%;
    max-width: 300px;
    height: auto;
    justify-self: center;
}
section:not(.footer) .cell .pic {
    background-color: var(--light);
}
section:not(.footer) .cell.bottom h4, section:not(.footer) .grid.one-part h4  {
    margin-top: var(--xs-spacing);
}
section:not(.footer) .grid:not(.one-part) .cell:not(.bottom) {
    align-self: baseline;
    margin-top: var(--s-spacing);
}
.podstr-main h3:not(:first-child) {
    margin-top: var(--m-spacing);
}
.podstr-main h4 span {
    text-decoration: line-through;
}

/* leaves grid */
.leaves-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 40px;
    margin-bottom: 70px;
}
.leaves-grid .cell {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    padding: var(--l-spacing);
    position: relative;
}
.leaves-grid .cell * {
    color: #fff;
}
.leaves-grid .cell * {
    color: #fff;
    /* margin-left: 15rem;
    margin-right: 4rem; */
}
/* .leaves-grid .cell.two * {
    margin-left: 7rem;
    margin-right: 12rem;
} */

.leaves-grid .cell p {
    margin-bottom: 2.5rem;
}
.leaves-grid .cell.one {
    background-image: url(./img/leaf1.svg);
}
.leaves-grid .cell.two {
    background-image: url(./img/leaf2.svg);
}
.leaves-grid .cell.three {
    background-image: url(./img/leaf3.svg);
}

@media screen and (max-width: 399px) {
    section:not(.footer) .grid {
        grid-template-columns: 1fr;
    }
}
@media screen and (min-width: 400px) {
    section:not(.footer) .cell.bottom.one {
        grid-column: 1 / 1;
        grid-row: 2 / 2;
    }
    section:not(.footer) .cell.bottom.two {
        grid-column: 2 / 2;
        grid-row: 2 / 2;
    }
}
@media screen and (max-width: 649px) {
    section:not(.footer) .grid.double {
        grid-template-columns: 1fr;
    }
    .intro .background {
        top: auto;
        bottom: 0;
    }
    .intro > :nth-child(2) {
        margin: 0;
    }
    .leaves-grid, .leaves-grid .cell {
        max-width: none;
        width: 600px;
    }
    .leaves-grid .cell {
        background-size: auto;
    }
    .leaves-grid .cell > * {
        width: calc(100vw - var(--m-spacing));
        max-width: 200px;
        margin: 0 auto;
    }
    .leaves-grid .cell h4 {
        margin-top: 2rem;
        margin-bottom: var(--xs-spacing);
    }
    .leaves-grid .cell.one {
        background-position: -30px 25px;
    }
    .leaves-grid .cell.two {
        background-position: 30px 25px;
    }
    .leaves-grid .cell.three {
        background-position: -30px 10px;
    }
}
@media screen and (min-width: 400px) and (max-width: 649px) {
    section:not(.footer) .cell.bottom.three {
        grid-column: 1 / 1;
        grid-row: 4 / 4;
    }
    section:not(.footer) .cell.bottom.four {
        grid-column: 2 / 2;
        grid-row: 4 / 4;
    }
}
@media screen and (min-width: 650px) {
    section:not(.footer) .grid.double {
        grid-template-columns: 1fr 1fr;
    }
    section:not(.footer) .grid.double .cell {
        max-width: 600px;
    }
    .leaves-grid .cell {
        max-width: 600px;
    }
    .leaves-grid .cell * {
        text-align: left;
        margin-left: 15rem;
        margin-right: 4rem;
    }
    .leaves-grid .cell.two * {
        margin-left: 7rem;
        margin-right: 12rem;
    }

}

@media screen and (max-width: 699px) {
    .abonamenty-cta {
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }
}

@media screen and (min-width: 650px) and (max-width: 899px) {
    section:not(.footer) .cell.bottom.three {
        grid-column: 3 / 3;
        grid-row: 2 / 2;
    }
    section:not(.footer) .grid:not(.one-part) .cell.four:not(.bottom) {
        grid-column: 2 / 2;
        grid-row: 3 / 3;
    }
    section:not(.footer) .grid.one-part .cell.four:not(.bottom) {
        grid-column: 2 / 2;
        grid-row: 2 / 2;
    }
    section:not(.footer) .cell.bottom.four {
        grid-column: 2 / 2;
        grid-row: 4 / 4;
    }
}
@media screen and (min-width: 900px) {
    section:not(.footer) .grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        width: 100%;
        margin: var(--s-spacing) 0;
        padding: 0 var(--m-spacing);
    }
    section:not(.footer) .cell.bottom.three {
        grid-column: 3 / 3;
        grid-row: 2 / 2;
    }
    section:not(.footer) .cell.bottom.four {
        grid-column: 4 / 4;
        grid-row: 2 / 2;
    }  
}
@media screen and (max-width: 1365px) {
    .leaves-grid #to-animate.animate.second, #to-animate.animate.second *,
    .leaves-grid #to-animate.animate.third, #to-animate.animate.second * {
    animation-delay: none;
}
}
@media screen and (min-width: 1366px) {
    .leaves-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: -50px;
        margin-bottom: -140px;
    } 
    .leaves-grid .cell {
        padding: var(--xl-spacing);
        max-width: none;
    }
    .leaves-grid .cell * {
        margin-left: 8rem;
        margin-right: -3rem;
    }
    .leaves-grid .cell.two {
        position: relative;
        top: 90px
    }
    .leaves-grid .cell.three {
        position: relative;
        top: -130px;
        right: -100px;
    }
    .leaves-grid .cell.two * {
        text-align: right;
        margin-right: 8rem;
        margin-left: -3rem;
    }
}


