html {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 350;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-size: 18px;
    color: #6D6B6B;
}

hr {
    background-color: currentColor;
    height: 1px;
    border: 0;
    margin: 25px 0
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
a:hover {
    text-decoration: underline;
}

a:active {
    color: black;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url(icons/bg-pattern.png) repeat center center;
    background-size: 10px 10px;
}

/* Content */

.content {
    position: relative;
    width: calc(100% - 40px);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 35px 20px;
    background: white;
    margin-bottom: 50px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
}


.tag {
    position: absolute;
    width: 40px;
    transform: rotate(90deg);
    bottom: -60px;
    right: 40px;
}

@media (min-width: 900px) {
    .tag {
        width: 40px;
        transform: rotate(0deg);
        bottom: 20px;
        right: -40px;
    }

}

/* Error */

.error {
    position: relative;
    width: calc(100% - 40px);
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    gap: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    margin-bottom: 50px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Header */

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: currentColor;
}

.logo-container .logo {
    padding: 8px 16px;
    background: white;
    z-index: 1;
}

/* Menu */

.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 35px -20px;
}

@media (min-width: 700px) {
    .nav-links {
        margin: 35px 0;
    }
}

.nav-links li {
    flex: 1;
    background: black;
    color: white;
    text-transform: uppercase
}

.nav-links li a {
    display: block;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background 0.3s ease;
    font-size: 0.8rem;
}

.nav-links li .active,
.nav-links li a:focus-visible,
.nav-links li a:hover {
    background: white;
    color: black;
}

/* Home */

.intro {
    margin: 20px 0;
    columns: 1;
}

@media (min-width: 600px) {
    .intro {
        columns: 2;
    }
}

.slides {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin: 0 -20px;
}

@media (min-width: 600px) {
    .slides {
        height: 450px;
        ;
        margin: 0;
    }
}

.slides .slide {
    position: absolute;
    inset: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;

    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slides .slide.active {
    opacity: 1;
}

/* Services */

.services {
    display: flex;
    flex-direction: column;
    gap: 60px;

}

@media (min-width: 700px) {
    .services {
        padding: 20px;
        gap: 50px;
    }
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

@media (min-width: 700px) {
    .service {
        flex-direction: row;
        gap: 40px;
    }

}

.service-image {
    flex: 1 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
    width: 200px;
}

@media (min-width: 700px) {
    .service-image {
        width: 150px;
    }

    .service:nth-child(even) .service-image {
        order: 2;
    }
}

/* Contact */

#map {
    height: 250px;
    margin: 0 -20px;
}

@media (min-width: 700px) {
    #map {
        height: 450px;
        margin: 0;
        box-shadow: none;
    }
}

.contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.contact>* {
    flex: 1;
}

.contact-info {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info>* {
    display: block;
}

.profession {
    margin-top: -8px;
}

.address {
    text-align: center;
}