body {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    background-color: #effafc;
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    color: #161c27;
    font-size: 18px;
    line-height: 1.6;
}

.container {
    max-width: 1180px;
}

/* Navigation */
.spacing-header nav {
    display: flex;
    gap: 80px;
}

nav a {
    color: #161c27;
    text-decoration: none;
    font-size: 24px;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.6;
    color: #161c27;
}

/* Page title */
.page-title {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2;
    color: #161c27;
}

/* Section headings */
.section-heading {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 48px;
    color: #161c27;
    margin-bottom: 16px;
}

/* White cards */
.card-custom {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
}

.card-custom p {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #161c27;
}

.card-custom .card-heading {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 35px;
    color: #161c27;
    margin-bottom: 20px;
}

/* Contact section */
.contact-email {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 35px;
    color: #161c27;
}

.contact-text {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #161c27;
}

.copyright {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #161c27;
}

.copyright span {
    font-family: "Montserrat", sans-serif;
}

/* Logo */
.logo img {
    height: 34px;
    width: auto;
}

/* Mission card alignment */
.card-mission {
    min-height: 144px;
    display: flex;
    align-items: center;
}

/* Research cards equal height */
.card-research {
    min-height: 522px;
}

/* Section spacing from Figma */
.spacing-header {
    padding-top: 60px;
    margin-bottom: 160px;
}

.spacing-title {
    margin-bottom: 86px;
}

.spacing-section-lg {
    margin-bottom: 80px;
}

.spacing-section-xl {
    margin-bottom: 160px;
}

.spacing-footer {
    padding-bottom: 160px;
}

.contacts-heading {
    margin-bottom: 76px;
}

.contact-text-narrow {
    max-width: 538px;
}

.footer-gap {
    margin-bottom: 240px;
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 32px;
    }

    .section-heading {
        font-size: 32px;
    }

    nav {
        gap: 24px;
    }

    nav a {
        font-size: 18px;
    }

    .card-custom {
        padding: 24px;
    }

    .card-custom p {
        font-size: 18px;
        line-height: 28px;
    }

    .card-custom .card-heading {
        font-size: 20px;
        line-height: 28px;
    }

    .contact-email,
    .contact-text,
    .copyright {
        font-size: 18px;
        line-height: 28px;
    }

    .card-research {
        min-height: auto;
    }

    .spacing-header {
        padding-top: 24px;
        margin-bottom: 60px;
    }

    .spacing-title {
        margin-bottom: 40px;
    }

    .spacing-section {
        margin-bottom: 60px;
    }

    .spacing-section-lg {
        margin-bottom: 60px;
    }

    .spacing-section-xl {
        margin-bottom: 80px;
    }

    .spacing-footer {
        padding-bottom: 80px;
    }

    .contacts-heading {
        margin-bottom: 30px;
    }

    .footer-gap {
        margin-bottom: 80px;
    }
}