*, *::before, *::after {
    box-sizing: border-box;
}
html {
    height: 100%;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    --main-color: #f8fa07;
    --secondary-color: #FFF;
    --tertiary-color: #000;
    --container-width: 1090px;
    --container-gutter: 18px;
    --section-bottom-margin: 80px;
}
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Comfortaa", "Open Sans", "Helvetica Neue", "Helvetica", "sans-serif";
    min-height: 100%;
    background-color: var(--secondary-color);
    font-size: 1.125rem;
}
@media screen and (max-width: 575px) {
    body {
        font-size: 1rem;
    }
}
.container {
    width: calc(100% - (var(--container-gutter) * 2));
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}
a {
    color: inherit;
    font-size: inherit;
}
img, video {
    max-width: 100%;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.list--styled li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.list--styled li:last-child {
    margin-bottom: 0;
}
.list--styled li::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--main-color);
    margin-right: 10px;
    border: 1px solid var(--tertiary-color);
    border-radius: 50%;
}
p:first-child {
    margin-top: 0;
}
p:last-child {
    margin-bottom: 0;
}
section {
    margin-bottom: var(--section-bottom-margin);
}
.title {
    text-align: center;
    margin-top: 0;
}

/* Header */
#header {
    width: 100%;
}
.header__banner {
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 2px solid var(--tertiary-color);
}
.header__banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo {
    max-width: 220px;
    background-color: var(--secondary-color);
    padding: 20px;
}
.header__contact-link {
    background-color: var(--secondary-color);
    padding: 10px 20px;
    text-decoration: none;
}
.header__video {
    width: var(--container-width);
    margin: 0 auto;
    display: block;
}
.header__img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: saturate(0);
}
.header-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 991px) {
    #header {
        flex-direction: column;
    }
    .header__logo {
        max-width: 200px;
    }
}
@media screen and (max-width: 575px) {
    #header {
        height: 400px;
    }
    .header__banner {
        border-bottom: 3px solid var(--tertiary-color);
        background-color: var(--secondary-color);
    }
    .header__banner .container {
        align-items: center;
    }
    .header__logo {
        margin-right: 15px;
    }
    .header__logo, .header__contact-link {
        border-bottom: none;
        padding-left: 0;
        padding-right: 0;
    }
    .header__img {
        height: calc(100% - 94px);
        margin-top: 94px;
    }
}
@media screen and (max-width: 406px) {
    .header__logo {
        max-width: 145px;
    }
}

/* Intro */
.intro {
    max-width: 600px;
    background: white;
    margin: 80px auto 140px;
    position: relative;
}
.intro::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 80%;
    height: 90%;
    background-color: var(--main-color);
    z-index: -1;
}
.intro__content {
    background-color: var(--secondary-color);
    padding: 30px 40px;
    border: 4px solid var(--tertiary-color);
}
.intro__title {
    font-size: 2rem;
    text-align: left;
}
@media screen and (max-width: 575px) {
    .intro {
        padding: 30px;
        margin-top: -110px;
    }
    .intro::before {
        height: calc(100% - 90px);
    }
    .intro__title {
        font-size: 1.25rem;
    }
}

.fadeup {
    animation-name: fadeup;
    animation-duration: 600ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-delay: 200ms;
}

@keyframes fadeup {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0px);
    }
  }

.interventions {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}
.interventions div:first-child {
    display: flex;
    flex-direction: column;
}
.team-img {
    width: 100%;
    object-fit: cover;
    object-position: 74%;
    display: block;
    border-radius: 15px;
    flex-grow: 1;
    margin-top: 20px;
    margin-bottom: 60px;
    max-height: 300px;
}

@media screen and (max-width: 767px) {
    .interventions {
        grid-template-columns: 1fr;
    }
}

/* Testimonials */
.testimonials ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.testimonials li {
    display: flex;
    flex-direction: column;
    padding: var(--container-gutter) 0;
    border-radius: 15px;
    position: relative;
}
.testimonials li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 49px;
    width: 4px;
    height: 40px;
    background-color: var(--main-color);
}
.testimonials__author {
    text-align: right;
    padding-top: 15px;
    padding-left: 25px;
}
.testimonials img {
    margin: 20px auto 0;
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}
.testimonials quote {
    font-size: 1.375rem;
    position: relative;
    padding-left: 35px;
    padding-top: 25px;
}
.testimonials quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 32px;
    background: url(img/quote.svg) no-repeat center;
    width: 24px;
    height: 18px;
}
@media screen and (max-width: 767px) {
    .testimonials ul {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 575px) {
    .testimonials ul {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 40px;
    margin: 0 auto;
}
.contact-title, .contact-title span {
    display: flex;
    align-items: center;
}
.contact-title {
    flex-direction: column;
}
.contact-title img {
    margin-bottom: 5px;
}

/* Contact - Phone numbers */
.phone-numbers {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.phone-number {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    background-color: var(--main-color);
    margin: 0;
    margin-right: var(--container-gutter);
}
.phone-number:last-child {
    margin-right: 0;
}
.phone-number img {
    margin-right: 10px;
}
.phone-number img + span {
    margin-left: 0;
}
.phone-number span {
    margin-left: 10px;
}
@media screen and (max-width: 767px) {
    .phone-numbers {
        margin-bottom: 40px;
    }
}

/* Contact - Social links */
.socials-links, .socials-links a {
    display: flex;
    justify-content: center;
    align-items: center;
}
.socials-links a {
    width: 80px;
    height: 80px;
    background-color: var(--main-color);
    border-radius: 15px;
    margin-right: 15px;
}
.socials-links a:last-child {
    margin-right: 0;
}
.socials-links img {
    width: 35px;
}

/* Footer */
.footer {
    background-color: var(--main-color);
    padding: 40px 0;
    width: 100%;
}
.footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    row-gap: 20px;
}
.footer p {
    margin: 5px 0;
    font-size: .875rem;
}
.footer__link {
    text-transform: uppercase;
    font-size: 1.875rem;
    font-family: Russo One;
    font-weight: 700;
    margin-bottom: 0;
    text-align: left;
    grid-column: 1 / 3;
}
@media screen and (max-width: 767px) {
    .footer {
        padding: 40px 0;
    }
}
@media screen and (max-width: 575px) {
    .footer__link {
        font-size: 1.625rem;
    }
}