.content {
    height: auto;
    margin: 0rem auto;
}

.content.main {
    box-sizing: border-box;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.5);
}

.content>section {
    position: relative;
    align-content: center;
    width: 100%;
    height: auto;
}

.block>h2 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 55px;
    padding-top: 40px;
    margin-bottom: 20px;
    font-weight: 200;
    text-align: center;
    line-height: 1;
    color: #232633;
}

/* stranka - okna
--------------------------------------------- */

.block {
    padding-left: 8em;
    padding-right: 8em;
    padding-top: 6em;
    padding-bottom: 2em;
    max-width: 1000px;
    margin: auto;
}

.block2 {
    padding: 0em;
    background: #fff;
    margin: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-gap: 30px;
    padding-left: 6em;
    padding-right: 6em;
    padding-bottom: 20em;
    max-width: 1200px;
    margin: 1em auto;
    grid-auto-rows: 0px;
}

.item {
    display: grid;
    grid-template-rows: max-content 1fr;
    margin-top: 0em;
    background: #fff;
    box-shadow:
        0 2px 2px rgba(0, 0, 0, 0.0);
}

.desc {
    padding: 10px 20px 10px 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    grid-gap: 60px 35px;
    padding-left: 6em;
    padding-right: 6em;
    padding-top: 1em;
    padding-bottom: 5em;
    max-width: 1200px;
    margin: 1em auto;
}

.card {
    display: grid;
    grid-template-rows: max-content 1fr;
    background: #fff;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.08);
}

.card:hover {
    box-shadow: 0 10px 20px 0 rgba(80, 70, 60, 0.15)
}

.center {
    display: grid;
    margin: auto;
    width: 90px;
    border-radius: 50%
}

.card .content {
    padding: 2.5rem 2.5rem 0rem 2.5rem;

}

.card .content1 {
    padding: 1rem 2.5rem 0rem 2.5rem;
}

.card .content1 h4 {
    font-weight: 300;
    font-size: 26px;
}

.card.card-on-mobile {
    display: none;
}

.card .content1 .sub-title {
    display: block;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 200;
    line-height: 1.4;
    margin: 0;
    color: #666;
    font-size: 18px;
    text-align: center;
}

.card .content1 .description-container {
    display: none;
    padding: 0;
    margin: 25px 0 0 0;
    list-style-position: inside;
}

.card .content1 .description-container li:not(:first-child) {
    margin-top: 10px;
}

.card .footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2.5rem 2rem 2.5rem;
}

.card h2 {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 300;
    color: black;
    font-size: 30px;
    line-height: 1.2;
    margin: 0px 0 20px 0;
}

h2 {
    font-family: Roboto, arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 0.1;
    color: #000;
}

h3 {
    font-family: "Roboto Condensed", sans-serif;
    text-align: center;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.5;
    color: #333;
}

h4 {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 300;
    color: black;
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.p4 {

    margin: 0;
    font-size: 13px;
    font-weight: 300;
    color: #999;
    line-height: 1.4;
    padding: 0;
}

.button {
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    height: 42px;
    width: 49.2%;
    margin-top: 20px;
    margin-bottom: 8px;
    border-radius: 4px;
    transition-duration: 0.3s;
}

.button4 {
    color: #fff;
    height: 50px;
    width: 100%;
    background-color: #353844;
    align-items: center;
    display: flex;
    justify-content: center;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 30px;
    margin-top: 60px;
    margin-bottom: 8px;
    transition-duration: 0.3s;
}

.button4:hover {
    background-color: #008aff;
    color: white;
}

.button5 {
    cursor: auto;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    color: #b2b2b2;
    height: 50px;
    width: 100%;
    background-color: #eee;
    margin-top: 20px;
    margin-bottom: 8px;
    transition-duration: 0.3s;
    /*box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);*/
}

.button6 {
    color: #fff;
    height: 50px;
    width: 75%;
    background-color: #232633;
    border-radius: 30px;
    margin-top: 22px;
    margin-bottom: 8px;
    transition-duration: 0.3s;
    font-family: "Arial", sans-serif;
    letter-spacing: normal;
    line-height: normal;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button6:hover {
    background-color: #ffc600;
    color: white;
}

.media-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: #232633;
    transition: .2s all;
}

.media-btn img {
    display: block;
    height: 20px;
    width: auto;
    filter: invert(100);
}

.media-btn:hover {
    transform: scale(1.15);
    background-color: #008aff;
}

@media only screen and (max-width: 700px) {
    .block {
        padding: clamp(2em, 10vw, 3em);
    }
}

@media only screen and (max-width: 500px) {
    .block>h2 {
        font-size: 45px;
        margin: -20px 0 20px 0;
    }

    .cards,
    .grid {
        padding-left: 3em;
        padding-right: 3em;
    }
}

@media only screen and (max-width: 420px) {
    .cards {
        padding-left: 1.5em;
        padding-right: 1.5em;
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .grid {
        padding-left: 2em;
        padding-right: 2em;
    }
}
