.container {
    margin-block: 40px;
}

.return small {
    text-decoration: none;
    color: #00338f;
    font-size: 18px !important;
}

.pills {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

#tab1,
#tab2 {
    text-align: center;
    background: #00338F;
    color: #ffffff;
    margin: 0;
    cursor: pointer;
    padding: 20px 5px;
    border-radius: 20px;
    width: 500px;
}

#tab1:hover,
#tab2:hover {
    background: #cfcfcf;
}

#tab1Content,
#tab2Content {
    transition-timing-function: ease-in;
    transition: 0.2s;
}

#tab2Content {
    display: none;
}

.check-tests {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 600px;
    overflow: hidden;
}

.check-tests .test-image {
    max-width: 590px;
    height: 540px;
}

.check-tests .tests-content {
    text-align: center;
    font-size: 13px;
    color: #00338f;
}

.check-tests .tests-content h2 {
    margin: 5px 0;
    font-weight: 700;
    color: #00338f;
}

.check-tests .tests-content .tests-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: start;
}

.check-tests .tests-content p {
    text-align: start;
    font-weight: 600;
    padding-left: 30px;
}

.check-tests .tests-content .test-age-add {
    text-align: start;
}

.cardio-tests {
    background: #cfcfcf;
    padding: 10px 0;
    max-height: 140px;
}

.cardio-tests ul {
    text-align: start;
}

.image-tests {
    background: #efefef;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #00338f;
}

.image-tests .image-test-title {
    padding-top: 20px;
    color: #00338f;
}


.image-tests .image-tests-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: start;
}

.image-tests .image-tests-content div p {
    padding-left: 30px;
    font-weight: 700;
}


.image-tests .image-tests-content .cardio-tests {
    background: #cfcfcf;
}

.image-tests .image-tests-content .cardio-tests h2 {
    text-align: center;
    margin: 0;
}

.medical-assessments {
    display: flex;
    justify-items: space-between;
    align-items: center;
    border-radius: 20px;
    background: #00338f;
}

.medical-assessments h2,
.medical-assessments ul,
.medical-assessments p {
    color: #ffffff;
}

.medical-assessments img {
    max-width: 550px;
    float: left;
    border-radius: 0 20px 20px 0;
}

.medical-ass-content {
    margin: 0 auto;
}

.medical-ass-content ul {
    font-size: 20px;
}

.check-prices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 30px 0;
    min-height: 50px;
    max-height: 150px;
}

.check-price {
    display: grid;
    grid-template-columns: 100%;
    margin: 30px 0;
    min-height: 50px;
    max-height: 150px;
}

.check-price .less40 {
    background: #cfcfcf;
    border-radius: 15px;
    padding: 20px;
}

.check-price .less40 h3,
.check-price .less40 small {
    color: #00338f;
    margin: 0;
}

.check-prices .less40,
.check-prices .more40,
.check-price .less40 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.check-prices .less40 {
    background: #cfcfcf;
    border-radius: 15px 0 0 15px;
    color: #00338f;
    padding: 20px;
}

.check-prices .less40 h3,
.check-prices .less40 h3 small {
    margin: 0;
    color: #00338f;
}

.check-prices .more40 h3,
.check-prices .more40 h3 small,
.check-prices .more40 p {
    margin: 0;
    color: white;
}

.check-prices .more40 p {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.check-prices .less40 p,
.check-prices .more40 p {
    line-height: 1.2;
}

.check-prices .less40 p small,
.check-prices .more40 p small{
        font-size: 20px;
}

.check-prices .less40 p,
.check-price .less40 p {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #00338f;
    text-align: center;
}

.check-prices .more40 {
    background: #00338f;
    border-radius: 0 15px 15px 0;
    color: #ffffff;
    padding: 20px;
}

.less40 .line-through {
    color: #666 !important;
    font-size: 20px !important;   
}

.more40 .line-through {
    color: #f5f6f6 !important;
    font-size: 20px !important;   
}

.buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.test-promotion {
    background: #cfcfcf;
    margin-right: 10px;
    padding: 10px;
}

.test-promotion ul {
    padding: 10px 30px;
}

@media screen and (max-width: 768px) {
    .pills {
        display: block;
    }

    #tab1,
    #tab2 {
        width: 100%;
        margin: 30px 0;
    }

    .check-tests {
        grid-template-columns: 100%;
        overflow: none;
        max-height: 100%;
    }

    .check-tests .test-image {
        width: 100%;
        height: 350px;
        border-radius: 20px;
    }

    .image-tests .image-tests-content {
        padding: 0;
    }

    .image-tests .image-tests-content div p {
        padding-left: 20px;
    }

    .image-tests .image-tests-content div:nth-child(1) ul {
        padding: 0 20px;
    }

    .cardio-tests {
        min-height: 220px;
    }

    .medical-assessments {
        border-radius: 20px;
        flex-direction: column;
    }

    .medical-assessments img {
        width: 100%;
        border-radius: 20px;
    }

    .medical-assessments .medical-ass-content ul {
        text-align: center;
        list-style-type: none;
        padding: 0;
        line-height: 1.5;
    }

    .medical-assessments .medical-ass-content h2 {
        text-align: center;
        margin-top: 10px;
    }

    .check-prices,
    .check-price {
        grid-template-columns: 100%;
    }

    .check-prices .less40 {
        border-radius: 15px 15px 0 0;
    }
    
    .check-prices .more40 {
        border-radius: 0 0 15px 15px;
    }

    .check-prices .less40 h3,
    .check-prices .more40 h3 {
        font-size: 18px;
    }

    .check-price .less40 h3 {
        font-size: 16px;
    }

    .check-prices .less40 p,
    .check-prices .more40 p {
        font-size: 22px;
        font-weight: 700;
    }

    .less40 .line-through,
    .more40 .line-through {
        font-size: 12px;
    }

    .container {
        margin-inline: 0;
    }

    .test-promotion {
        margin-inline: 0;
    }

    .test-promotion p {
        padding: 0;
    }
}