@charset "utf-8";

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-slab-v24-latin-regular.eot');
    src: local(''), url('../fonts/roboto-slab-v24-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-slab-v24-latin-regular.woff2') format('woff2'), url('../fonts/roboto-slab-v24-latin-regular.woff') format('woff'), url('../fonts/roboto-slab-v24-latin-regular.ttf') format('truetype'), url('../fonts/roboto-slab-v24-latin-regular.svg#RobotoSlab') format('svg');
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-slab-v24-latin-500.eot');
    src: local(''), url('../fonts/roboto-slab-v24-latin-500.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-slab-v24-latin-500.woff2') format('woff2'), url('../fonts/roboto-slab-v24-latin-500.woff') format('woff'), url('../fonts/roboto-slab-v24-latin-500.ttf') format('truetype'), url('../fonts/roboto-slab-v24-latin-500.svg#RobotoSlab') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    min-height: 100%;
}

body {
    color: #3463AF;
    font: 400 1em/1.4 'Roboto Slab', Arial, sans-serif;
}

#wrapper {
    position: relative;
    max-width: 930px;
    margin: 1rem auto;
    border: 1px solid #000;
    background: #fff url('../images/bg.jpg') no-repeat right top 40rem;
    overflow: hidden;
    padding: 3.5rem 3.5rem 0;
}

:is(h1, h2, h3, strong) {
    font-weight: 500;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

a.ins {
    text-decoration: underline;
}

p span {
    white-space: nowrap;
}

p {
    padding-bottom: 1rem;
}

h1 {
    margin: 0 0 1rem;
    font-size: 2.25em;
    line-height: 1.3;
}

h1 span {
    display: block;
    padding-left: 1.8rem;
    font-style: italic;
    background: url('../images/icon.jpg') no-repeat 0 15px;
}

h2 {
    font-size: 1.6em;
    line-height: 1.3;
    font-style: italic;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-style: italic;
}

ul {
    padding: 0 0 1.5rem;
    list-style: none;
}

li {
    padding: 0 0 0.35rem 1rem;
}

li:before {
    content: "\2022";
    font-size: 1.3rem;
    line-height: 1.1;
    margin-left: -1rem;
    float: left;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.tab {
    display: none;
}

label:hover {
    cursor: pointer;
}

.tab+label:nth-of-type(1) {
    position: absolute;
    top: 1rem;
    left: 1rem
}

.tab:last-of-type+label {
    position: absolute;
    top: 1rem;
    left: 5rem
}

.tab__content {
    display: none;
}

.tab:checked:nth-of-type(1)~.tab__content:nth-of-type(1),
.tab:checked:nth-of-type(2)~.tab__content:nth-of-type(2) {
    opacity: 1;
    display: block;
}

.tab:first-of-type:not(:last-of-type)+label {
    border: none;
}

.tab__content {
    background-color: transparent;
    width: 100%;
    opacity: 0;
}

.pb {
    padding-bottom: 1.5rem;
}

header {
    margin-right: 5.7rem;
    display: flex;
    justify-content: flex-end;
}

article {
    padding: 0 0 2rem;
    width: 505px;
}

.intro {
    width: 264px;
    position: absolute;
    right: 3.5rem;
    top: 20rem;
}

.bg {
    width: 233px;
    position: absolute;
    right: 5rem;
    top: 42.5rem;
    color: #fff;
    z-index: 1;
}

.apply a {
    position: absolute;
    right: 7rem;
    top: 60rem;
    color: #fff;
    transform: rotate(-16deg);
    font-size: 1.85em;
    line-height: 1.3;
    text-align: center;
    z-index: 1;
    min-width: 150px;
}

footer {
    display: flex;
    justify-content: center;
}

@media only screen and (max-width:929px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background: #fff;
        padding: 3rem 3rem 0;
    }

    :is(p, li) {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    p a,
    span {
        display: inline-block;
    }

    .intro,
    .bg,
    .apply {
        position: static;
        width: auto;
    }

    .bg {
        background: #3463AF;
        padding: 1rem 1rem 0;
    }

    .apply {
        display: flex;
        justify-content: center;
        padding: 1.5rem 0;
    }

    .apply a {
        background: #EB7787;
        transform: none;
        padding: 0.5rem 1rem;
        position: static;
    }

    header {
        justify-content: center;
        margin: 0 0 1.5rem;
    }

    article {
        width: auto;
        padding: 0;
    }

    br:not(.contact br) {
        display: none;
    }
}

@media only screen and (max-width:768px) {
    #wrapper {
        padding: 3rem 2rem 0;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 1.5rem;
    }

    h1 span {
        background-position: 0 8px;
    }

    ul {
        padding-bottom: 1.5rem;
    }

    .contact {
        text-align: center;
    }
}

@media only screen and (max-width:480px) {
    #wrapper {
        padding: 3rem 1rem 0;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.313em;
    }
}