* {
    margin: 0;
    padding: 0;
}

::selection {
    color: #fff;
    background: #216869;
}

html, body {
    height: 100%;

    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;

    cursor: url("../img/xi.svg"), auto;
}

a {
    cursor: url("../img/xi-hand.svg"), auto;
}

body {
    background-color: #DCE1DE;

    background-size: contain;
    background-image: url("../img/bg.svg");
}

.bg-filter {
    width: 100%;
    height: 100%;

    /*background-color: rgba(33, 104, 105, 0.5);*/
}

.wrapper {
    min-height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: #fff;
    box-sizing: border-box;
    padding: 0 100px;
    border: 1px solid #ced2cf;
    border-top: 0;
    border-bottom: 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

header {
    padding: 24px 0;

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

header > div {
    flex: 1;
}

header h1 {
    font-size: 1.4rem;
    color: #216869;
    margin-top: 4px;
}

header h2 {
    font-size: 1.1rem;
    color: #374151;
    font-weight: 600;
    margin-top: 2px;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

nav {
    border: 1px solid #DCE1DE;
    border-radius: 999px;
    padding: 8px 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 4px;
    display: block;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: #374151;
    padding: 10px 16px;
    border-radius: 100px;
    font-weight: 600;

    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: #DCE1DE;
    color: #216869;
    transform: rotate(-3deg);
}

nav ul li a.active {
    background: #216869;
    color: #fff;
    transform: rotate(0deg);
}

main {
    padding: 128px 0 64px 0;
}

main h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #216869;
}

main h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 600;
    color: #216869;
}

main h3 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 600;
    color: #216869;
}

main h4 {
    font-size: 1.44rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 600;
    color: #216869;
}

main p,
main ul,
main ol {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #374151;
}

main ul,
main ol {
    margin-left: 32px;
}

main li {
    margin-bottom: 16px;
}

main li p {
    margin: 0;
}

.card-list {
    list-style: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 48px;
}

.card-list li {
    border: 1px solid #DCE1DE;
    border-radius: 16px;
    padding: 16px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

section a {
    color: #216869;
    font-weight: 600;
    display: inline-block;
    margin: 4px;

    transition: all 0.3s ease;
}

h1 a, h2 a {
    color: inherit;
    text-decoration: none;

    display: inline-block;

    transition: all 0.3s ease;
}

h1 a:not(.active):hover, h2 a:not(.active):hover {
    text-decoration: underline;
}

section a:hover, header a:not(.active):hover {
    transform: rotate(-3deg);
}

.row {
    display: flex;
    gap: 80px;
}

.row > .col {
    flex: 1;
}

.col-5 {
    max-width: 360px;
}

img {
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    block-size: auto;
}

.center, video {
    display: block;
    margin: 0 auto;
    text-align: center;
}

video {
    margin-bottom: 32px;
}

.profile-pic {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 16px;
    transform: rotate(3deg);
    margin: 0 auto 20px auto;
    display: block;
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.contact-with-icon {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    text-decoration: none;
    font-weight: 600;
    color: #374151;
}

.contact-with-icon:hover {
    color: #216869;
}

.contact-with-icon svg {
    margin-right: 12px;
    transition: all 0.3s ease;
}

.contact-with-icon:hover svg {
    transform: rotate(-30deg);
}


@media (max-width: 1024px) {
    .wrapper {
        padding: 0 64px;
    }

    header {
        flex-wrap: wrap;
    }

    header > div {
        flex-basis: 100%;
    }

    header .flex-end {
        margin-top: 32px;
        justify-content: center;
    }

    main {
        padding: 64px 0;
    }

    .row {
        flex-wrap: wrap;
    }

    .row > .col {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 0 32px;
    }
}

@media (max-width: 500px) {
    nav {
        width: 100%;
        border-radius: 16px;
    }

    ul {
        flex-direction: column;
        width: 100%;
    }

    main h1 {
        font-size: 2.4rem;
    }

    main h2 {
        font-size: 1.8rem;
    }
    main h3 {
        font-size: 1.6rem;
    }
    main h4 {
        font-size: 1.4rem;
    }


}