@charset "utf-8";

:root {
    --dark_purple: hsl(245, 23%, 21%);
    --medium_purple: hsl(244, 11%, 50%);
    --light_purple: hsl(240, 22%, 85%);
    --red: hsl(0, 57%, 58%);
    --beige: hsl(0, 10%, 90%);
}

footer {
    position: relative;
    background-color: var(--dark_purple);
    padding: 2rem 10px 10px 10px;
    color: var(--light_purple);
}

.footer_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_contacts,
.footer_clinic {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer_contacts a,
.footer_menu a {
    color: var(--light_purple);
}

.footer_contacts a:hover,
.footer_menu a:hover {
    color: #fff;
}

.footer_contacts_phone,
.footer_clinic_name {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer_contacts_time,
.footer_clinic_address {
    font-size: 12px;
    color: var(--light_purple);
    margin-bottom: 1rem;
}

.footer_clinic_license {
    font-size: 14px;
    color: var(--medium_purple);
}

.footer_menu {
    display: flex;
    justify-content: center;
    gap: 10px 1rem;
    flex-wrap: wrap;
}

.under_footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid var(--medium_purple);
    padding: 10px;
    margin-top: 2rem;
    text-align: center;
}

.under_footer p,
.under_footer a {
    display: inline;
    font-size: 0.8em;
    color: var(--medium_purple);
    border-left: 1px solid var(--medium_purple);
    padding-left: 10px;
}

.under_footer a:hover {
    color: var(--light_purple);
}

.under_footer p:first-child {
    border: none;
    padding-left: 0;
}


@media (max-width: 800px) {

.footer_info {
    flex-direction: column;
    gap: 2rem;
}

.footer_contacts {
    order: 0;
}

.footer_clinic {
     order: 1;
}

.footer_menu {
    order: 2;
}

.footer_clinic_name {
    font-size: 1.8rem;
}

}

@media (max-width: 600px) {

    .under_footer {
        flex-direction: column;
    }

    .under_footer p,
    .under_footer a {
        border: none;
    }

}