@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Roboto-Regular.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 65px;
    background-color: #c9dcf0;
}

body {
    margin: 0;
    color: #164884;
    background: url("../images/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
}

a:hover {
    color: #a3281d;
}

a:focus-visible {
    outline: 3px solid #164884;
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 2;
    padding: 10px 16px;
    background: #fff;
}

.skip-link:focus {
    top: 8px;
}

.topbar,
.brand,
.footer {
    background: rgba(77, 108, 178, 0.8);
    color: #e6eff9;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 5px 20px;
    border-bottom: 1px solid #000;
    text-align: center;
    font-size: 20px;
}

.topbar a,
.footer a {
    text-decoration: none;
}

.topbar a:hover,
.footer a:hover {
    color: #f5ffa7;
    text-decoration: underline;
}

.topbar a:focus-visible,
.footer a:focus-visible {
    outline-color: #fff;
}

.brand {
    margin-top: 10px;
    border-bottom: 1px solid #000;
}

.brand-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: min(100% - 48px, 1000px);
    margin: 0 auto;
    padding: 5px 0;
}

.brand-logo {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

h1 {
    margin: 0;
    line-height: 1;
}

.brand-title {
    display: block;
    width: 100%;
    height: auto;
}

.content {
    width: min(83.333%, 1200px);
    margin: 30px auto 0;
    padding-left: min(15.5vw, 200px);
    padding-bottom: 32px;
}

h2,
h3 {
    color: #333;
    font-weight: 400;
    line-height: 1.4;
}

h2 {
    margin: 0 0 36px;
    font-size: 32px;
}

h3 {
    margin: 40px 0 18px;
    font-size: 24px;
}

ul {
    margin: 0;
    padding-left: 30px;
}

ul ul {
    margin-top: 0;
}

section + section {
    margin-top: 56px;
}

.subtitle {
    display: block;
    padding-left: 48px;
}

.contact h2 {
    margin-bottom: 20px;
}

address {
    font-style: normal;
}

address p {
    margin: 16px 0;
    overflow-wrap: anywhere;
}

.footer {
    padding: 20px 24px;
    text-align: center;
}

.footer > a {
    font-size: 20px;
}

.footer p {
    margin: 16px 0 0;
    font-size: 14px;
}

@media (max-width: 959px) {
    .brand-inner {
        gap: 20px;
    }

    .brand-logo {
        width: 70px;
    }

    .content {
        width: calc(100% - 48px);
        max-width: 720px;
        padding-left: 0;
    }
}

@media (max-width: 479px) {
    .brand-inner {
        width: calc(100% - 32px);
        gap: 12px;
    }

    .brand-logo {
        width: 48px;
    }

    .content {
        width: calc(100% - 32px);
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .subtitle {
        padding-left: 0;
    }
}
