@font-face {
    font-family: "PT Sans";
    src: url("/static/fonts/ptsans.ttf");
}

@font-face {
    font-family: "PT Sans";
    font-weight: bold;
    src: url("/static/fonts/ptsans_bold.ttf");
}

@font-face {
    font-family: "PT Sans";
    font-style: italic;
    src: url("/static/fonts/ptsans_italic.ttf");
}

@font-face {
    font-family: "PT Sans Narrow";
    src: url("/static/fonts/ptsansnarrow.ttf");
}

@font-face {
    font-family: "PT Sans Narrow";
    font-weight: bold;
    src: url("/static/fonts/ptsansnarrow_bold.ttf");
}

body {
    padding: 0;
    margin: 0;
    background: #234987;
}

*:focus {
    outline: none;
}

h1, h2 {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1em;
}

header {
    background: #1e5799;
    background: -moz-linear-gradient(top, #1e5799 0%, #234987 100%);
    background: -webkit-linear-gradient(top, #1e5799 0%, #234987 100%);
    background: linear-gradient(to bottom, #1e5799 0%, #234987 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2989d8', endColorstr='#1e5799', GradientType=0);
    border: 1px solid #1b366b;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 3;
}

header .logo {
    height: 50px;
    padding: 10px 10px 0 0;
    cursor: pointer;
}

header .menu {
    display: flex;
    display: -ms-flex;
    float: right;
    height: 100%;
}

header .menu a {
    padding: 20px 15px;
    color: white;
    font: 12pt "PT Sans", sans-serif;
    text-decoration: none;
    text-align: center;
    transition: 75ms;
    border-bottom: 5px solid transparent;
}

header .menu a:hover,
.about-menu a:hover {
    border-bottom: 5px solid white;
}

.about-menu {
    display: none;
    width: 100%;
    background: #1e5799;

    position: fixed;
    top: 65px;
    left: 0;
    height: 40px;
    z-index: 1;
}

.about-menu .container {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: end;
    justify-content: flex-end;
}

.about-menu a {
    padding: 10px;
    margin-left: 10px;
    font: 11pt "PT Sans", sans-serif;
    color: white;
    text-shadow: 0 3px 3px #112142;
    text-decoration: none;
    display: inline-block;
    flex: 0;
}

.content {
    padding-top: 65px;
}

.content.aside {
    padding-top: 105px;
}

section {
    clear: both;
}

#intro {
    border-top: 1px solid #1e5799;
    height: 600px;
    position: relative;
    background: #1e5799;
    z-index: 0;
}

#intro:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #2466B3; /* Old browsers */
    background: -moz-linear-gradient(top, #2466B3 0%, #1e5799 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #2466B3 0%, #1e5799 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #2466B3 0%, #1e5799 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2989d8', endColorstr='#1e5799', GradientType=0) alpha(Opacity=80); /* IE6-9 */
    opacity: 0.8;
    z-index: 1;
}

#intro:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: url('/static/frontpage/img/city.jpg') center center no-repeat;
    background-size: cover;
    opacity: 0.2;
}

#intro .container {
    display: flex;
    display: -ms-flexbox;
}

#intro .info {
    position: relative;
    z-index: 2;
    padding: 150px 0 0 0;
    flex: 0 1 400px;
}

#intro h1 {
    margin: 0 0 -25px 0;
    color: white;
    font: bold 72pt "PT Sans", sans-serif;
    text-shadow: 1px 5px #112142;
    letter-spacing: -2px;
}

#intro h2 {
    margin: 0;
    color: #112142;
    font: bold 24pt "PT Sans Narrow", sans-serif;
    text-align: center;
}

#intro .intro-text {
    margin-top: 1em;

    color: white;
    font: 13pt/1.5 "PT Sans", sans-serif;
}

#intro .intro-actions {
    padding: 1.5em 0;
    line-height: 3;
    text-align: center;
}

#intro .gallery {
    padding: 10em 3em;
    position: relative;
    z-index: 2;
    flex: 1;
}

#intro .gallery img {
    position: relative;
    width: 100%;
}

#about {
    background: linear-gradient(to bottom, #eee 0%, #ddd 100%);
}

#about h2 {
    padding: 0 0 0.5em 0;
    color: #1e5799;
    font: bold 36pt "PT Sans Narrow", sans-serif;
    text-align: center;
}

#about article {
    min-height: 600px;
    clear: both;
}

#about article .container {
    padding: 2em 1em 1em 1em;
}

.info {
    font: 16pt/1.5 "PT Sans", sans-serif;
    text-align: justify;
}

#about article .info {
    color: #112142;
}

#about article .demo {
    display: block;
    text-align: center;
    margin: 0 auto;
    padding: 2em 0;
}

#about article .demo img {
    max-width: 100%;
    max-height: 600px;
}

#join {
    min-height: 860px;
    position: relative;
    background: #112142;
    z-index: 0;
}

#join h2 {
    color: white;
    text-shadow: 1px 1px #112142;
    font: bold 36pt "PT Sans Narrow", sans-serif;
    text-align: center;
    padding: 0.5em 0 1em 0;
}

#join .info {
    color: white;
    text-align: center;
}

.social-list {
    display: flex;
    align-items: center;
    margin: auto;
    width: 200px; /* ширина должна позволять вместить все баджики соц.сетей (размер одного баджа 50 на 50 .social-img) */
}

.social a {
    text-decoration: none;
    margin: 0 1em 2em 0;
}

.social img {
    width: 50px;
    height: 50px;
}

#join:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: url('/static/frontpage/img/city-footer.jpg') center center no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

#join .container {
    position: relative;
    z-index: 2;
}

#join .register h3 {
    margin: 1.5em 0 0 0;
}

#register-form {
    text-align: left;
    width: 280px;
    margin: 0 auto;
}

#register-form .submit {
    text-align: center;
}

#login {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#login h2 {
    color: white;
    font: bold 36pt "PT Sans Narrow", sans-serif;
    text-shadow: 1px 1px #112142;
}

#login .container {
    z-index: 4;
    position: relative;
    padding: 2em 1em;
}

#login:before {
    position: fixed;
    content: "";
    top: 65px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #112142;
    opacity: 0.95;
    z-index: 3;
}

#login .close {
    position: absolute;
    top: 3em;
    right: 2em;
    width: 1em;
    height: 1em;
    cursor: pointer;
}

#login .close img {
    width: 16px;
    height: 16px;
}

#login-form {
    padding: 1em 0;
    max-width: 400px;
    color: white;
    text-shadow: 1px 1px #112142;
    font-family: "PT Sans", sans-serif;
}

#login-form .errors {
    padding: 0.25em;
}

#login-form .submit {
    text-align: left;
}

.form-input {
    padding: 0.5em 0;
    position: relative;
}

.form-input label {
    display: block;
    font-size: 12pt;
}

.form-input a {
    color: #2989d8;
}

.form-input input {
    padding: 10px 15px;
    margin: 0;
    border: none;
    border-radius: 5px;
    font: 12pt "PT Sans", sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.form-input input[type="checkbox"] {
    display: inline-block;
    width: 25px;
}

.form-input .password-toggler {
    position: absolute;
    height: 25px;
    width: 25px;
    top: 42px;
    right: 10px;
    cursor: pointer;
}

.form-input .password-toggler + input {
    padding-right: 50px;
}

.form-input .hint {
    font-size: 10pt;
}

.form-input.agreement-input label {
    display: inline-block;
    font-size: 9pt;
}

.submit {
    padding: 1em 0;
}

footer {
    height: 50px;
    background: #2466B3; /* Old browsers */
    background: -moz-linear-gradient(top, #2466B3 0%, #1e5799 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #2466B3 0%, #1e5799 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #2466B3 0%, #1e5799 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2989d8', endColorstr='#1e5799', GradientType=0) alpha(Opacity=80); /* IE6-9 */

    color: white;
    font: 12pt/50px "PT Sans", sans-serif;
    text-align: center;
}

button, .button {
    border: none transparent;
    border-radius: 10px;
    padding: 10px 15px;
    margin: 0 1em 0 0;

    font: bold 14pt "PT Sans Narrow", sans-serif;
    cursor: pointer;
    transition: color 150ms, background 150ms;
}

.button-action {
    border-top: 1px solid #2466B3;
    border-bottom: 3px solid #112142;
    color: white;
    text-shadow: 1px 1px #112142;
    background: #1e5799;
    background: -moz-linear-gradient(top, #1e5799 0%, #234987 100%);
    background: -webkit-linear-gradient(top, #1e5799 0%, #234987 100%);
    background: linear-gradient(to bottom, #1e5799 0%, #234987 100%);
}

.button-success {
    border-bottom: 3px solid #1A331A;
    color: white;
    text-shadow: 1px 1px #1A331A;
    background: #438843 !important;
    background: -moz-linear-gradient(top, #5cb85c 0%, #438843 100%) !important;
    background: -webkit-linear-gradient(top, #5cb85c 0%, #438843 100%) !important;
    background: linear-gradient(to bottom, #5cb85c 0%, #438843 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cb85c', endColorstr='#438843', GradientType=0) !important;
}

.button-success:hover {
    background: #438843 !important;
    background: -moz-linear-gradient(top, rgba(92, 184, 92, 0.85) 0%, rgba(67, 136, 67, 0.85) 100%) !important;
    background: -webkit-linear-gradient(top, rgba(92, 184, 92, 0.85) 0%, rgba(67, 136, 67, 0.85) 100%) !important;
    background: linear-gradient(to bottom, rgba(92, 184, 92, 0.85) 0%, rgba(67, 136, 67, 0.85) 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#aad641', endColorstr='#80aa1c', GradientType=0) !important;
}

.button-action:active,
.button-success:active {
    position: relative;
    top: 3px;
    height: 48px;
    border-bottom: none;
}

.button-outlined {
    background: none;
    border: 1px solid white;
    color: white;
    text-shadow: 1px 1px #112142;
}

.button-outlined:hover {
    color: #112142;
    text-shadow: none;
    background: white;
}

.fonds {
    text-align: center;
}

.fonds h2 {
    margin-top: 1em;
    font: 21pt "PT Sans", sans-serif;
    color: white;
}

#contacts {
    padding: 2em 0;
    background: #eeeeee;
}

.contacts--title {
    color: #1e5799;
    font: bold 36pt "PT Sans Narrow", sans-serif;
    text-align: center;
}

.contacts--organization {
    margin: 1em 0;
    color: #1e5799;
    font: 14pt "PT Sans", sans-serif;
}

.contacts--organization-name {
    font-weight: bold;
}

.contact, .services {
    font: 12pt "PT Sans", sans-serif;
    line-height: 2;
}

.contact--label, .services--title {
    font-weight: bold;
    color: #1e5799;
}

.services {
    margin: 1em 0;
}

.services--list {
    margin: 0;
}

@media (max-width: 800px) {
    #intro .gallery {
        display: none;
    }
}

@media (max-width: 680px) {
    header .menu {
        flex-wrap: wrap;
    }

    header .menu a {
        padding: 20px 5px;
        color: white;
        font: 10pt "PT Sans", sans-serif;
        text-decoration: none;
        transition: 75ms;
        border-bottom: 5px solid transparent;
    }
}

@media (max-width: 550px) {
    header .menu a[href="#intro"] {
        display: none;
    }
}

@media (max-width: 475px) {
    header .menu a[href="#contacts"],
    header .menu a[href="#about"] {
        display: none;
    }
}