@charset "utf-8";

@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/roboto-condensed-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans Condensed";
    src: url("../fonts/fira-sans-condensed-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Nanum Pen Script";
    src: url("../fonts/nanum-pen-script-latin.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    font-size: 16px;
    --blue: #005a9e;
    --text-blue: #005fb6;
    --peach: #ffd8b9;
    --cream: #ffead8;
    --orange: #ff8738;
    --handwriting: "Nanum Pen Script", cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-blue);
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
    position: relative;
    max-width: 50rem;
    margin: 1rem auto;
    overflow: hidden;
    container-type: inline-size;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.advert-header {
    background: var(--peach);
}

.headline-row {
    position: relative;
    height: 6.476rem;
}

.headline-row h1 {
    position: absolute;
    left: 9.94%;
    top: 0.9035rem;
    color: var(--blue);
    font-family: var(--handwriting);
    font-size: 5.271rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.headline-row h1 span {
    color: var(--orange);
}

.brand {
    position: absolute;
    top: 0;
    right: 5.12%;
    width: 23.8%;
    padding-bottom: 0.6025rem;
    overflow: hidden;
    border-radius: 0 0 0.8285rem 0.8285rem;
    background: #0c5dab;
}

.brand img,
.photo-banner {
    display: block;
    width: 100%;
}

.vacancies {
    position: relative;
    padding: 0.6775rem 0 0.828rem;
    color: #fff;
    background: var(--blue);
    text-align: center;
}

.introduction,
.job {
    position: relative;
    z-index: 1;
}

.introduction {
    margin-bottom: 0.527rem;
    font-size: 1.807rem;
    font-weight: 400;
    line-height: 2.033rem;
}

.job + .job {
    margin-top: 0.6775rem;
}

.job + .job h2 {
    font-size: 3.3135rem;
}

.job h2 {
    color: var(--orange);
    font-family: var(--handwriting);
    font-size: 3.012rem;
    font-weight: 400;
    line-height: 3.1625rem;
}

.job h2 span {
    display: inline-block;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.6565rem;
    line-height: 1;
    vertical-align: baseline;
}

.job p {
    font-family: "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.807rem;
    line-height: 2.1835rem;
    transform: translateX(-4.217rem);
}

.job + .job h2 span {
    font-size: 1.807rem;
}

.decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.pencil-left {
    top: 3.69rem;
    left: 3.163%;
    width: 21.988%;
}

.bulb-right {
    top: 3.3885rem;
    right: 4.819%;
    width: 9.789%;
}

.details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1295rem;
    padding: 1.506rem 2.1835rem 1.506rem 2.4095rem;
    background: var(--peach);
}

.detail-panel {
    min-height: 20.03rem;
    padding: 0.5rem 0.226rem 0.753rem;
    background: var(--cream);
}

.detail-panel h2 {
    color: var(--orange);
    font-family: var(--handwriting);
    font-size: 2.1835rem;
    font-weight: 400;
    line-height: 2.033rem;
    transform: translateY(-0.1505rem) scale(0.88, 1.2);
    transform-origin: left center;
}

.detail-panel ul {
    list-style: none;
    font-size: 1.28rem;
    line-height: 1.807rem;
}

.detail-panel li {
    position: relative;
    padding-left: 0.8285rem;
}

.detail-panel li::before {
    position: absolute;
    left: 0;
    content: "•";
}

.application {
    display: flex;
    align-items: center;
    min-height: 3.539rem;
    padding: 0 2.259rem 0 2.9365rem;
    background: var(--orange);
}

.application h2 {
    flex: 0 0 20.6%;
    color: #fff;
    font-family: var(--handwriting);
    font-size: 3.012rem;
    font-weight: 400;
    line-height: 1;
    transform: scale(0.88, 1.3);
    transform-origin: left center;
}

.application p {
    flex: 1;
    font-size: 1.2425rem;
    font-weight: 500;
    line-height: 1.3555rem;
    text-align: center;
}

.application a {
    color: #fff;
    font-weight: 700;
}

.locations {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6025rem;
    min-height: 5.6475rem;
    padding: 0.9035rem 0.979rem 1.205rem 1.732rem;
    color: #fff;
    background: #0c5dab;
    text-align: center;
}

.locations address {
    font-family: Arial, sans-serif;
    font-size: 0.6025rem;
    font-style: normal;
    line-height: 0.8285rem;
}

.locations strong {
    display: block;
    font-weight: 700;
}

@media only screen and (max-width: 49.938rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 47.999rem) {
    .decoration {
        display: none;
    }

    .headline-row {
        height: 5.375rem;
    }

    .headline-row h1 {
        top: 0.75rem;
        font-size: 4.375rem;
    }

    .photo-banner {
        height: auto;
    }

    .introduction {
        font-size: 1.5rem;
        line-height: 1.6875rem;
    }

    .job h2 {
        font-size: 2.5rem;
        line-height: 2.625rem;
    }

    .job + .job h2 {
        font-size: 2.75rem;
    }

    .job h2 span {
        font-size: 1.375rem;
    }

    .job p,
    .job + .job h2 span {
        font-size: 1.5rem;
    }

    .job p {
        line-height: 1.8125rem;
        transform: translateX(-3.5rem);
    }

    .details {
        gap: 0.9375rem;
        padding: 1.25rem 1.8125rem 1.25rem 2rem;
    }

    .detail-panel {
        min-height: 16.625rem;
    }

    .detail-panel h2 {
        font-size: 1.8125rem;
        line-height: 1.6875rem;
    }

    .detail-panel ul {
        font-size: 1.0625rem;
        line-height: 1.5rem;
    }

    .application {
        min-height: 2.9375rem;
        padding: 0 1.875rem 0 2.4375rem;
    }

    .application h2 {
        font-size: 2.5rem;
    }

    .application p {
        font-size: 1rem;
        line-height: 1.125rem;
    }

    .locations {
        gap: 0.5rem;
        min-height: 4.6875rem;
        padding: 0.75rem 0.8125rem 1rem 1.4375rem;
    }

    .locations address {
        font-size: 0.5rem;
        line-height: 0.6875rem;
    }
}

@media only screen and (max-width: 35rem) {
    .headline-row {
        height: 3.125rem;
    }

    .headline-row h1 {
        top: 0.5rem;
        font-size: 2.1875rem;
    }

    .brand {
        padding-bottom: 0.25rem;
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .vacancies {
        padding: 0.5rem 0.75rem;
    }

    .introduction {
        margin-bottom: 0.4rem;
        font-size: 1.0625rem;
        line-height: 1.3rem;
    }

    .job h2,
    .job + .job h2 {
        font-size: 2.125rem;
        line-height: 2.5rem;
    }

    .job h2 span,
    .job + .job h2 span {
        font-size: 1.125rem;
    }

    .job p {
        font-size: 1.125rem;
        line-height: 1.5rem;
        transform: none;
    }

    .details {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .detail-panel {
        min-height: 0;
        padding: 0.25rem 0.5rem 0.75rem;
    }

    .detail-panel h2 {
        font-size: 2rem;
        line-height: 1.2;
        transform: none;
    }

    .detail-panel ul {
        font-size: 1.0625rem;
        line-height: 1.4;
    }

    .detail-panel li {
        padding-left: 0.7rem;
    }

    .application {
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.75rem;
    }

    .application h2 {
        font-size: 2.5rem;
        transform: none;
    }

    .application p {
        font-size: 0.9375rem;
        line-height: 1.2;
    }

    .application p br {
        display: none;
    }

    .locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.5rem;
        padding: 1rem 0.75rem;
    }

    .locations address {
        font-size: 0.6875rem;
        line-height: 1.4;
    }

    .locations address:last-child {
        grid-column: 1 / -1;
    }
}
