*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: #666;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    line-height: 26px;
}

h1 {
    margin: 0 0 13px;
    color: #db2536;
    font-size: 32px;
    line-height: 52px;
    font-weight: 500;
}

h2 {
    margin: 0 0 13px;
    color: #db2536;
    font-size: 26px;
    line-height: 52px;
    font-weight: 400;
}

p {
    margin: 0 0 26px;
}

ul {
    margin: 0 0 26px;
}

p + ul {
    margin-top: -26px;
}

a {
    color: #db2536;
    text-decoration: none;
}

.screenreader-only {
    position: absolute;
    margin: -1px 0 0 -1px;
    padding: 0;
    display: block;
    width: 1px;
    height: 1px;
    font-size: 1px;
    line-height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
    outline: 0;
}

#header-brand {
    padding-top: 25px;
    padding-bottom: 25px;
}

#header-brand img {
    vertical-align: middle;
}

#header-brand a {
    color: #333;
    font-size: 30px;
    line-height: 30px;
}

#header-menu::after {
    content: "";
    display: block;
    clear: left;
}

#header-menu a {
    color: #333;
    font-size: 20px;
    line-height: 20px;
}

#header-menu a:hover,
#header-menu a.current-page {
    color: #db2536;
}

#header-menu-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 51px;
    height: 51px;
    border: 1px solid #333;
    border-radius: 3px;
    background: transparent;
    padding: 9px;
}

#header-menu-toggle .menu-icon-bar {
    display: block;
    margin-top: 5px;
    width: 31px;
    height: 7px;
    border-radius: 3px;
    background: #333;
}

#header-menu-toggle .menu-icon-bar:first-child {
    margin-top: 0;
}

#header-bottom {
    position: relative;
    height: 500px;
}

#header-bottom.image1 {
    background: url("../img/promo/image1.jpg") center center / cover no-repeat;
}

#header-bottom.image2 {
    background: url("../img/promo/image2.jpg") center center / cover no-repeat;
}

#header-bottom.image3 {
    background: url("../img/promo/image3.jpg") center center / cover no-repeat;
}

#header-bottom.image4 {
    background: url("../img/promo/image4.jpg") center center / cover no-repeat;
}

#header-bottom::before,
#header-bottom::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 13px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
}

#header-bottom::before {
    top: 0;
}

#header-bottom::after {
    bottom: -13px;
}

@media screen and (max-width: 959px) {
    #header-brand {
        padding-left: 13px;
    }

    #header-menu {
        height: 0;
        overflow-y: hidden;
        transition: height 0.6s ease-in-out;
    }

    #header-menu a {
        display: block;
        padding: 13px 26px;
    }
}

@media screen and (min-width: 960px){
    #header-top::after {
        content: "";
        display: block;
        clear: both;
    }

    #header-brand {
        float: left;
    }

    #header-menu {
        float: right;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    #header-menu a {
        float: left;
        margin-left: 35px;
    }

    #header-menu-toggle {
        display: none;
    }
}

@media screen and (max-width: 479px) {
    #header-brand img {
        display: block;
    }
}

@media screen and (min-width: 960px) and (max-width: 1279px) {
    #header-brand {
        padding-left: 40px;
    }

    #header-menu {
        padding-right: 40px;
    }
}

.content-block {
    padding: 26px 0;
}

.content-block:nth-of-type(2n) {
    background: #f5f5f5;
}

@media screen and (max-width: 479px) {
    .content-block,
    #aside-container {
        padding-right: 26px;
        padding-left: 26px;
    }
}

@media screen and (min-width: 480px) and (max-width: 1279px) {
    .content-block,
    #aside-container {
        padding-right: 40px;
        padding-left: 40px;
    }
}

@media screen and (min-width: 1280px) {
    .container {
        margin-right: auto;
        margin-left: auto;
        width: 1200px;
    }

    #main-container {
        position: relative;
    }

    .content-block-text {
        width: 820px;
    }

    #aside-container {
        position: absolute;
        top: 40px;
        left: calc(50% + 270px);
        width: 330px;
    }
}

#application-button {
    display: block;
    border: 1px solid #666;
    background: #f7f7f7;
    color: #db2536;
    font-size: 30px;
    line-height: 30px;
    padding: 14px 20px;
}

#news {
    margin-top: 26px;
    border: 1px solid #666;
    background: #E3F7FF;
}

#news-title {
    border-bottom: 1px solid #666;
    color: #51b0df;
    font-size: 30px;
    line-height: 30px;
    padding: 14px 20px;
}

#news-body {
    font-size: 16px;
    line-height: 20px;
}

.news-item {
    padding: 14px 20px;
}

.news-item p {
    margin-bottom: 0;
}

.news-item p + p {
    margin-top: 20px;
}

.news-item + .news-item {
    border-top: 1px solid #333;
}

.news-item-title {
    font-weight: 700;
}

.news-item-body {
    margin-top: 20px;
}

.location-images {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: -20px 0 0 -20px;
    padding: 0;
}

.location-images li {
    padding: 20px;
}

.location-images a,
.location-images img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
}

.location-images img {
    outline: 20px solid rgba(255, 255, 255, 0.5);
    outline-offset: -20px;
}

form {
    max-width: 410px;
}

form p,
form .captcha{
    margin-bottom: 31px;
}

label {
    display: block;
}

label:not([for]) {
    margin-bottom: 13px;
}

label.inline {
    display: inline-block;
}

label.inline + label.inline {
    margin-left: 16px;
}

input[type="text"],
select,
textarea {
    display: block;
    width: 100%;
    border: 1px solid #666;
    padding: 0 7px;
    font-size: 18px;
    font-family: inherit;
}

input[type="text"],
select {
    height: 34px;
    line-height: 32px;
}

textarea {
    resize: none;
    line-height: 26px;
}

input[type="text"].invalid,
select.invalid,
textarea.invalid {
    border-color: red;
}

input[type="checkbox"] {
    margin: 0 4px 0 0;
}

fieldset {
    margin: 0 0 26px;
    border: 0;
    padding: 0;
}

legend {
    margin: 0 0 13px;
    padding: 0;
}

button[type="submit"] {
    height: 34px;
    border: 1px solid #666;
    background: #f7f7f7;
    padding: 0 7px;
    font-size: 18px;
    font-family: inherit;
    line-height: 32px;
}

.validation-error {
    display: block;
    color: red;
    font-size: 16px;
}

.form-hint {
    display: block;
    color: #999;
    font-size: 16px;
}

#success-message,
#error-message {
    margin-bottom: 26px;
    padding: 1em;
    color: #fff;
}

#success-message {
    background: #1c7430;
}

#error-message {
    background: #b21f2d;
}

#footer {
    margin-top: 100px;
    padding-bottom: 25px;
    background: #ccc;
}

#footer-brand {
    padding-top: 40px;
}

#footer-brand img {
    vertical-align: middle;
}

#footer-brand a {
    color: #333;
    font-size: 30px;
    line-height: 30px;
}

#footer-contact {
    color: #db2536;
    font-size: 20px;
    line-height: 24px;
}

#footer-contact a {
    color: #db2536;
}

#footer-contact a[href^="tel"],
#footer-contact a[href^="mailto"] {
    color: #333;
}

#footer-top-right a {
    color: #333;
    font-size: 20px;
    line-height: 28px;
}

#footer-top-right .red {
    color: #db2536;
}

#footer-bottom {
    margin-top: 25px;
}

#footer-bottom::after {
    content: "";
    display: block;
    clear: both;
}

#footer-copy {
    float: left;
    max-width: 40%;
    color: #333;
    font-size: 14px;
    line-height: 21px;
}

#footer-sevenart {
    float: right;
}

@media screen and (max-width: 959px) {
    #footer-container {
        padding-right: 13px;
        padding-left: 13px;
        padding-bottom: 28px;
    }

    #footer-top-right {
        margin-top: 25px;
    }
}

@media screen and (min-width: 960px) and (max-width: 1279px) {
    #footer-container {
        padding-right: 40px;
        padding-left: 40px;
    }
}

@media screen and (min-width: 960px) {
    #footer-top::after {
        content: "";
        display: block;
        clear: both;
    }

    #footer-top-left {
        float: left;
    }

    #footer-top-right {
        float:right;
        margin-top: 34px;
        text-align: right;
    }

    #footer-contact {
        text-align: right;
    }
}