:root {
    --white: #ffffff;
    --blue: #00AEEF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'FreeSetLightC', sans-serif;
    line-height: 110%;
}

body .show-all-btn{
    font-size: 16px;
}

body .about-section__wrapper h2{
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.about-section__wrapper *{
    line-height: 3rem;
}

.main h2{
    font-size: 24px;
    margin-bottom: 20px;
}

body .form-consultation{
    max-width: 1368px;
}

ul {
    list-style-position: inside;
}

input[type='tel'],
input[type='text'] {
    padding: 14px 10px;
    border-radius: 6px;
    border: 1px solid #DFE4EB;
    background: var(--white);
}

input[type='tel']::placeholder,
input[type='text']::placeholder {
    color: #ADBACC;
    font-family: 'FreeSetLightC', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'FreeSetLightC', sans-serif;
    line-height: 110%;
    cursor: pointer;
}

body .button--primary {
    border-radius: 6px;
    border: none;
    color: var(--white);
    font-size: 16px;
    background-color: var(--blue);
    min-height: 46px;
    text-transform: uppercase;
}

body .button--secondary {
    font-family: 'FreeSetLightC', sans-serif;
    font-size: 16px;
    color: var(--blue);
    width: 280px;
    height: 52px;
    background-color: #E0F1FF;
    border: none;
    border-radius: 10px;
}

.button--expand {
    width: 212px;
    height: 52px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    color: var(--blue);
    align-self: center;
}

.wrapper {
    max-width: 1378px;
    margin: 0 auto;
}

.form-section {
    width: 100%;
    height: auto;
    background: transparent;
    position: relative;
}

.form-section:after {
    content: '';
    background: #231f20;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    opacity: 0.5;
}

.form-section__wrapper {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.form-section__wrapper.wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.form-section__form {
    width: 381px;
    height: 404px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form__header {
    color: var(--blue);
    text-align: center;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    margin: 0;
    margin-bottom: 20px;
}

.form-section__text-input {
    width: 100%;
    height: 46px;
}

.form-section__button {
    margin: 10px 0;
}

.form__description {
    font-size: 20px;
    line-height: 110%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #333;
}

.form__phone {
    text-decoration: none;
    color: var(--blue);
}

.form__checkbox-wrapper {
    display: flex;
    margin-top: 10px;
}

.form__checkbox {
    display: none;
}

.form__checkbox-label::before {
    box-sizing: border-box;
    content: '';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 24px;
    height: 24px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    margin-right: 12px;
}

.form__checkbox:checked + .form__checkbox-label::before {
    background-image: url('img/icons/check.svg');
    background-position: 50% 50%;
}

.form__checkbox-label {
    font-size: 14px;
    display: flex;
    cursor: pointer;
}

.form__link {
    color: var(--blue);
}

.prices-section {
    margin: 40px auto;
}

.prices-section__header,
.about-section__header,
.gallery-section__header {
    font-size: 40px;
    color: var(--blue);
    margin-bottom: 60px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

body .prices-section__header{
    margin-bottom: 20px;
}

.about-section__header{
    margin-top: 35px;
    margin-bottom: 30px;
}

.prices-section__tab-radio {
    display: none;
}

.prices-section__tabs {
    color: #8592A6;
    line-height: 110%;
    border-bottom: 1px solid #DFE4EB;
    text-transform: uppercase;
    display: flex;
}

.prices-section__tab {
    display: inline-flex;
    padding: 12px 36px;
    cursor: pointer;
    position: relative;
}

.prices-section__tab-radio:nth-of-type(1):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(1),
.prices-section__tab-radio:nth-of-type(2):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(2) {
    color: #333;
}

.prices-section__tab-radio:nth-of-type(1):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(1)::after,
.prices-section__tab-radio:nth-of-type(2):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(2)::after {
    left: 0;
    top: calc(100% - 1px);
    position: absolute;
    content: '';
    width: 100%;
    background: #00AEEF;
    height: 2px;
    border-radius: 3px;
}

.prices-section__ambulance-content,
.prices-section__emergency-content {
    display: none;
}

.prices-section__tab-radio:nth-of-type(1):checked ~ .prices-section__tabs-content .prices-section__ambulance-content,
.prices-section__tab-radio:nth-of-type(2):checked ~ .prices-section__tabs-content .prices-section__emergency-content {
    display: flex;
}

.prices-section__ambulance-content,
.prices-section__emergency-content {
    flex-direction: column;
    gap: 40px;
}

.ambulance-content__table {
    font-size: 20px;
    color: #2B3337;
}

.ambulance-content__thead {
    font-size: 24px;
    color: var(--blue);
}

.ambulance-content__thead td,
.ambulance-content__tbody td {
    border-bottom: 1px solid #DFE4EB;
    line-height: 110%;
}

.ambulance-content__thead td,
.ambulance-content__tbody tr td:first-child {
    padding: 24px;
}

.ambulance-content__table tr td:nth-child(2) {
    min-width: 140px;
}

.ambulance-content__table tr td:nth-child(2),
.ambulance-content__table tr td:nth-child(3) {
    text-align: center;
}

.ambulance-content__tbody tr td:first-child {
    max-width: 890px;
}

.ambulance-content__tbody tr td:last-child {
    font-size: 24px;
}

.ambulance-content__badge {
    border-radius: 10px;
    padding: 5px 10px;
    background-color: var(--blue);
    font-size: 24px;
    color: var(--white);
}

.call-section {
    padding: 60px 0;
    background-color: var(--blue);
    color: var(--white);
}

.call-section__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.call-section__left-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.call-section__header {
    color: white;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

.call-section__description {
    color: white;
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
}

.call-section__right-side {
    display: flex;
    flex-wrap: wrap;
    max-width: 580px;
    gap: 20px;
}

.call-section__input-phone {
    width: 280px;
    height: 52px;
}

.call-section__checkbox {
    display: none;
}

.call-section__checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.call-section__checkbox-label a{
    color: white;
}

.call-section__checkbox-label:before {
    content: '';
    min-width: 18px;
    height: 18px;
    margin-right: 7px;
    display: inline-flex;
    background-color: var(--white);
    border-radius: 50%;
}

.call-section__checkbox:checked + .call-section__checkbox-label:before {
    background: url('img/icons/check-call.svg') 50% 50% no-repeat;
}

body .feature-section__header{
    width: 100%;
    margin-bottom: 65px;
}

.features-section {
    margin: 40px auto 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.features-section__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 121px 23px;
}

.features-section__mobile-button {
    display: none;
}

.features-section__feature {
    padding: 118px 32px 0;
    width: 440px;
    height: 294px;
    position: relative;
    background-color: var(--white);
    color: #333;
    line-height: 110%;
    filter: drop-shadow(0px 7px 30px rgba(0, 0, 0, 0.10));
    border-radius: 8px;
}

.feature__image {
    width: 162px;
    height: 162px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -25%;
    left: calc(50% - 81px);
    border: 1px solid #E0F1FF;
    border-radius: 50%;
    background-color: var(--white);
}

.features-section__title {
    color: var(--blue);
    font-size: 24px;
    margin-bottom: 24px;
}

.features-section__description {
    max-width: 352px;
    line-height: 110%;
}

.features-section__description, .features-section__description *{
    font-size: 16px;
}

.features-section__list {
    margin-left: 10px;
}

body ul.features-section__list li{
    list-style-type: disc;
}

#features-section__expand-checkbox {
    display: none;
}

#features-section__expand-checkbox:checked ~ .features-section__mobile-button {
    display: none;
}

#features-section__expand-checkbox:checked ~ .features-section__feature--mobile-hidden {
    display: block;
}

.features-section__button,
.button-section__button {
    width: 100%;
    max-width: 340px;
    height: 60px;
    border-radius: 12px;
    background: url('img/icons/button-bg.svg') var(--blue) 100% no-repeat;
}

.about-section {
    background-color: #F0F2F5;
    padding: 0;
    padding-top: 1px;
    padding-bottom: 40px;
}

.about-section__main {
    display: flex;
    gap: 40px;
    text-align: justify;
    font-size: 20px;
    line-height: 130%;
    color: #333;
}

.about-section__paragraph {
    display: flex;
    flex-direction: column;
    gap: 35px;
    flex-basis: 660px;
    font-size: 14px;
}

.about-section__button {
    margin: 40px auto 0;
}

#about-section__expand-checkbox {
    display: none;
}

.about-section__hidden {
    margin-top: 0;
    display: none;
    flex-direction: column;
    gap: 40px;
}

#about-section__expand-checkbox:checked ~ .about-section__button {
    display: none;
}

#about-section__expand-checkbox:checked ~ .about-section__hidden {
    display: flex;
}

.about-section__block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: justify;
}

.about-section__block--blue *{
    color: var(--blue);
    font-size: 20px;
    gap: 36px;
    line-height: 130%;
}

.about-section__block-header {
    font-size: 24px;
    color: var(--blue);
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

.about-section__block-paragraph {
    font-size: 14px;
    color: #333;
    line-height: 130%;
}

.about-section__summary {
    padding: 24px 0;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    color: #333;
    border-bottom: 1px solid #DFE4EB;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.about-section__summary::after {
    content: url('img/icons/plus.svg');
    width: 30px;
    height: 30px;
}

.about-section__details-content {
    font-size: 20px;
    color: #333;
    margin: 20px 0;
}

.about-section__button--hidden {
    margin-top: 0;
}

.button-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px auto;
}

.button-section--mobile {
    display: none;
}

.gallery-section {
    margin-bottom: 50px;
}

body .gallery-section__header {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-section__buttons {
    display: flex;
}

.gallery-section__arrow-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    padding: 14.5px;
    border: none;
    background: #F5F6F8;
    cursor: pointer;
}

.gallery-section__arrow-button:nth-child(1) {
    border-radius: 35px 0 0 35px;
}

.gallery-section__arrow-button:nth-child(2) {
    border-radius: 0 35px 35px 0;
}

.gallery-section__arrow-button:nth-child(2) img {
    transform: rotate(180deg);
}

.gallery-section__content {
    display: flex;
    gap: 20px;
}

.gallery-section__slider {
    overflow: hidden;
    width: 100%;
    max-width: 679px;
    height: auto;
}

.gallery-section__slide img {
    width: 100%;
}

.gallery-section__thumbnails {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: flex-end;
    grid-gap: 20px;
    cursor: pointer;
}

.gallery-section__thumbnail {
    max-width: 330px;
    width: 100%;
    height: auto;
    max-height: 185px;
}

@media (max-width: 1418px) {
    .wrapper {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 1250px) {
    .gallery-section__thumbnails {
        display: none;
    }

    .gallery-section__content {
        justify-content: center;
    }
}

@media (max-width: 1175px) {
    .call-section__header {
        font-size: 35px;
    }

    .call-section__description {
        font-size: 16px;
    }
}

@media (max-width: 970px) {
    .prices-section__header,
    .about-section__header,
    .gallery-section__header {
        font-size: 35px;
    }
}

@media (max-width: 780px) {
    .button--secondary {
        width: 100%;
        max-width: 350px;
    }

    .button--expand {
        width: 100%;
    }

    .form-section__wrapper {
        display: none;
    }

    .button-section {
        margin: 60px auto 100px;
    }

    .button-section--mobile {
        display: flex;
        margin: 40px auto;
    }

    .prices-section {
        margin: 0 0 36px;
    }

    .prices-section__header {
        margin-left: 20px;
    }

    .prices-section__header,
    .about-section__header,
    .gallery-section__header {
        margin-bottom: 24px;
        margin-left: 0;
        font-size: 28px;
    }

    .prices-section__tabs {
        border: none;
        font-size: 12px;
    }

    .prices-section__tab {
        padding: 12px 20px;
    }

    .prices-section__tab-radio:nth-of-type(1):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(1)::after,
    .prices-section__tab-radio:nth-of-type(2):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(2)::after {
        height: 1px;
        border-radius: 0;
        width: calc(100% - 40px);
        left: 20px;
        top: 32px;
    }

    .prices-section__ambulance-content,
    .prices-section__emergency-content {
        gap: 0;
    }

    .ambulance-content__table tr td:nth-child(2) {
        min-width: initial;
    }

    .ambulance-content__table-wrapper {
        overflow: hidden;
    }

    .ambulance-content__table {
        font-size: 14px;
    }

    .ambulance-content__thead {
        font-size: 16px;
    }

    .ambulance-content__thead td {
        border-top: 1px solid #DFE4EB;
    }

    .ambulance-content__thead td,
    .ambulance-content__tbody tr td:first-child {
        padding: 16px 20px;
    }

    .ambulance-content__tbody tr td:last-child {
        font-size: 14px;
    }

    .ambulance-content__badge {
        font-size: 14px;
    }

    .call-section {
        padding: 40px 20px;
    }

    .call-section__header {
        font-size: 28px;
    }

    .call-section__input-phone {
        width: 100%;
        max-width: 350px;
    }

    .call-section__checkbox-label {
        margin-top: 20px;
        width: 100%;
        max-width: 350px;
    }

    .features-section {
        margin: 128px auto 60px;
    }

    .features-section__features {
        gap: 108px;
    }

    .features-section__feature {
        padding: 96px 32px 0;
        width: 100%;
        max-width: 335px;
    }

    .features-section__description {
        max-height: 125px;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 7;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .feature__image {
        width: 140px;
        height: 140px;
        left: calc(50% - 70px);
    }

    .features-section__title {
        font-size: 18px;
    }

    .about-section__button,
    .features-section__mobile-button {
        height: 18px;
        display: flex;
    }

    .features-section__mobile-button{
        margin-top: -60px;
    }

    .features-section__feature--mobile-hidden {
        display: none;
    }

    .about-section {
        padding: 45px 0 40px;
    }

    .about-section__header {
        margin-bottom: 40px;
    }

    .about-section__paragraph:nth-child(2) {
        display: none;
    }

    .gallery-section {
        margin: 0 0 100px;
    }

    .gallery-section__header {
        margin-bottom: 40px;
    }

    .gallery-section__buttons {
        display: none;
    }

    .gallery-section__slider {
        margin-left: 20px;
    }
}

@media (max-width: 465px) {
    .prices-section__tab-radio:nth-of-type(1):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(1)::after,
    .prices-section__tab-radio:nth-of-type(2):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(2)::after {
        top: 42px;
    }
}

@media (max-width: 450px) {

    .gallery-section__slide {
        width: initial;
    }

    .gallery-section__slide img {
        width: auto;
        height: 172px;
    }
}

@media (max-width: 380px) {
    .features-section__feature {
        width: calc(100% - 40px);
    }
}

@media (max-width: 360px) {
    .ambulance-content__table-wrapper {
        overflow-x: scroll;
    }
}

@media (max-width: 346px) {
    .prices-section__tab-radio:nth-of-type(2):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(2)::after {
        top: 55px;
    }
}

@media (max-width: 328px) {
    .prices-section__tab-radio:nth-of-type(1):checked ~ .prices-section__tabs .prices-section__tab:nth-of-type(1)::after {
        top: 55px;
    }
}