* {
    box-sizing: border-box;
    margin: 0;
    outline: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent !important;
}

html {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

body {
    height: 100%;
    overflow-x: hidden;
}

.clearfix::after {
    clear: both;
    content: '';
    display: table;
}

a {
    text-decoration: none;
}

input, textarea, button {
    font-family: 'Roboto', sans-serif !important;
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content {
    flex: 1 0 auto;
    min-height: calc(100vh - 64px);
}

.vi-only {
    display: none;
}

.full-width {
    width: 100% !important;
    height: auto !important;
}

/* ---------- header ---------- */

header {
    align-items: flex-start;
    border-bottom: solid 1px rgba(236, 240, 241, 0.5);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 64px;
    justify-content: space-between;
}

header > * {
    height: 64px;
}

.header__menu {
    font-size: 0;
}

.header__menu img {
    height: 28px;
    width: 28px;
}

.header__menu img + img {
    display: none;
}

.header__menu > * {
    cursor: pointer;
    display: inline-block;
    height: 64px;
    padding: 18px;
    vertical-align: top;
    width: 64px;
}

.header__menu--menu {
    background-color: #f8c81c;
    transition: background-color 0.15s ease-in-out;
}

.header__menu--menu:hover {
    background-color: #ebebeb;
}

.header__menu--search {
    background-color: #f4f4f4;
    transition: filter 0.15s ease-in-out;
}

.header__menu--search:hover img {
    filter: brightness(0);
}

.header__menu--visually-impaired {
    align-items: center;
    background: transparent url('/images/icons/tt.svg') no-repeat scroll 18px center;
    background-size: 28px 28px;
    cursor: default;
    display: inline-flex;
    flex-direction: row;
    font-size: 12px;
    justify-content: flex-start;
    line-height: 1.25;
    padding: 0 0 0 64px;
    width: 154px;
}

header.main .header__menu--visually-impaired {
    background-image: url('/images/icons/tt-light.svg');
}

.header__menu--visually-impaired a {
    color: #1976d2;
    cursor: pointer;
}

.header__menu--visually-impaired:hover a {
    text-decoration: underline;
}

.header__menu--visually-impaired a + a {
    display: none;
}

.header__logo {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 0;
    margin-right: 35px;
    width: 123px;
}

.header__logo div {
    color: #303030;
    display: none;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

.header__logo img,
.footer__logo img {
    display: block;
    height: 44px;
    width: 44px;
}

.header__logo img + img,
.footer__logo img + img {
    width: 63px;
}

.header__logo img:first-of-type,
.footer__logo img:first-of-type {
    transition: transform 0.3s ease-in-out;
}

.header__logo:hover img:first-of-type,
.footer__logo:hover img:first-of-type {
    transform: rotate(180deg);
}

header nav {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: calc(100% - 440px);
}

header nav a {
    color: #303030;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.188;
    transition: color 0.15s ease-in-out;
}

header nav a.active {
    color: #f8c81c;
}

header nav a:hover {
    color: #f8c81c !important;
}

header, header * {
    transition: all 0.15s ease-in-out;
}

header.main:not(.fixed-header) {
    border-bottom: transparent;
    height: 0;
    position: relative;
    z-index: 9;
}

header.main:not(.fixed-header) .header__menu--visually-impaired a {
    color: white;
}

header.main:not(.fixed-header) nav {
    width: calc(100% - 509px);
}

header.main:not(.fixed-header) nav a {
    color: white;
}

header.main:not(.fixed-header) .header__logo {
    background-color: white;
    /*display: inline-flex;*/
    flex-direction: column;
    justify-content: center;
    /*font-size: 0;*/
    height: 160px;
    margin-right: 0;
    width: 192px;
}

header.main:not(.fixed-header) .header__logo div {
    display: block;
}

header.main:not(.fixed-header) .header__logo div.vi-only {
    display: none;
}

header .vi-rmpts,
footer .vi-rmpts {
    font-size: 36px !important;
    width: 130px !important;
}

header.fixed-header {
    background-color: white;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9;
}

header.fixed-header + main {
    margin-top: 64px !important;
}

/* ---------- footer ---------- */

footer {
    border-top: solid 1px rgba(236, 240, 241, 0.5);
    height: 64px;
    max-height: 64px;
    overflow: hidden;
}

footer > * {
    height: 64px;
}

.footer__left {
    float: left;
}

.footer__right {
    color: #303030;
    display: flex;
    flex-direction: column;
    float: right;
    font-size: 12px;
    line-height: 1.25;
    justify-content: center;
    padding-right: 25px;
    text-align: right;
}

.footer__left > * {
    display: inline-block;
    height: 64px;
    vertical-align: top;
}

.footer__to-top {
    background-color: #e8e8e8;
    cursor: pointer;
    padding: 18px;
    transition: background-color 0.15s ease-in-out;
    width: 64px;
}

.footer__to-top:hover {
    background-color: #f8c81c;
}

.footer__to-top img {
    height: 28px;
    width: 28px;
}

.footer__logo {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 0 20px;
    width: 265px;
}

.footer__logo img {
    /**/
}

.footer__logo div {
    color: #303030;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.3;
    width: 80px;
}

.footer__adm-links {
    /**/
}

.footer__adm-links > a {
    background: transparent none no-repeat scroll left center;
    background-size: 44px 44px;
    color: #303030;
    display: inline-flex;
    flex-direction: column;
    font-size: 12px;
    height: 44px;
    justify-content: center;
    margin-top: 10px;
    max-width: 180px;
    padding-left: 50px;
    transition: color 0.15s ease-in-out;
}

.footer__adm-link:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* ----------- menu ----------- */

html[data-menu],
html[data-menu] body {
    overflow: hidden;
}

.menu {
    height: 100vh;
    left: 0;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform: scale(0);
    transform-origin: left top;
    transition: all 0.15s ease-in-out;
    width: 100vw;
    z-index: 10;
}

html[data-menu] .menu {
    opacity: 1;
    pointer-events: initial;
    transform: none;
}

.menu > div {
    background-color: #1976d2;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    left: 0;
    min-height: 100vh;
    overflow: hidden;
    padding: 64px;
    position: absolute;
    top: 0;
    width: 100vw;
}

.menu__close {
    background-color: white;
    cursor: pointer;
    height: 64px;
    left: 0;
    padding: 18px;
    position: absolute;
    top: 0;
    transition: background-color 0.15s ease-in-out;
    width: 64px;
}

.menu__close:hover {
    background-color: #ebebeb;
}

.menu__search {
    font-size: 0;
    height: 45px;
}

.menu__search > * {
    display: inline-block;
    vertical-align: top;
}

.menu__search input {
    background-color: rgba(209, 209, 209, 0.2);
    border: none;
    color: white;
    font-size: 16px;
    height: 45px;
    line-height: 45px;
    padding: 0 22px;
    width: calc(100% - 140px);
}

.menu__search input::-webkit-input-placeholder {color: white; opacity: 0.8}
.menu__search input::-moz-placeholder {color: white; opacity: 0.8}
.menu__search input:-ms-input-placeholder {color: white; opacity: 0.8}
.menu__search input:-moz-placeholder {color: white; opacity: 0.8}

.menu__search button {
    background-color: white;
    border: none;
    cursor: pointer;
    height: 45px;
    width: 140px;
}

.menu__search button > * {
    display: inline-block;
    vertical-align: top;
}

.menu__search button img {
    height: 28px;
    margin: 8.5px 8px 0 0;
    width: 28px;
}

.menu__search button span {
    color: #1976d2;
    font-size: 16px;
    font-weight: bold;
    line-height: 45px;
    text-transform: uppercase;
}

.menu__content {
    align-content: flex-start;
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.menu__items {
    margin-top: 39px;
    flex: 0 0 25%;
}

.menu__item {
    color: white;
    display: block;
    font-size: 16px;
    line-height: 1.188;
    margin-top: 19px;
    transition: color 0.15s ease-in-out;
    white-space: nowrap;
}

.menu__item:hover {
    color: #f8c81c;
}

.menu__item:first-of-type {
    color: #f8c81c;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0;
}

.menu__item.active {
    color: #f8c81c;
}

.menu__item.force-first-of-type {
    color: #f8c81c;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0;
}

/* ---------- main page ---------- */

.main-background,
.main-background > div {
    height: 56.25vw;
    max-height: 100vh;
    width: 100vw;
}

.main-background {
    overflow: hidden;
    position: relative;
}

.main-background > div:not(.page-switch) {
    align-items: flex-start;
    background: transparent none no-repeat scroll center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-end;
    left: 0;
    opacity: 0;
    padding: 64px;
    position: absolute;
    top: 0;
    transition: opacity 1s ease-in-out;
}

.main-background > div:not(.page-switch) > * {
    z-index: 2;
}

.main-background > div:not(.page-switch)::after {
    background-color: rgba(0,0,0,0.5);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.main-background > div:not(.page-switch) h1 {
    color: white;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.188;
    margin-bottom: 32px;
    width: 40%;
}

.main-background > div.page-switch {
    bottom: 48px;
    font-size: 0;
    height: 10px;
    left: 64px;
    position: absolute;
    width: 100px;
    z-index: 2;
}

.main-background > div.page-switch > label {
    background-color: transparent;
    border: solid 2px white;
    border-radius: 100%;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    height: 10px;
    transition: all 1s ease-in-out;
    width: 10px;
}

.main-background > div.page-switch > label:hover {
    border-color: #f8c81c;
}

.main-background > div.page-switch > label + label {
    margin-left: 16px;
}

.main-background input {
    display: none !important;
}

main {
    font-size: 0;
    margin: 0 auto;
    max-width: 1152px;
    padding: 32px 0;
    width: calc(100% - 128px);
}

main > .col {
    display: inline-block;
    font-size: initial;
    vertical-align: top;
    width: calc(50% - 8px);
}

main > .col + .col {
    margin-left: 16px;
}

main h2 {
    color: #303030;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.188;
    margin-left: 20px;
}

main article {
    border-bottom: solid 1px #f8c81c;
    padding: 30px 20px;
}

main article:last-of-type {
    border-bottom-color: transparent;
}

main article a,
main article a h2 {
    color: #1976d2;
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: underline;
}

main article a:hover,
main article a:hover h2 {
    color: #f8c81c;
}

main article time,
main article .subheader {
    color: #303030;
    display: block;
    font-size: 12px;
    line-height: 1.25;
    margin: 20px 0 10px;
}

main article .article__preview {
    color: #303030;
    font-size: 16px;
    line-height: 1.188;
    margin-top: 10px;
}

main article .article__images {
    font-size: 0;
    margin-top: 20px;
}

main article .article__images img {
    display: inline-block;
    vertical-align: top;
    width: calc(100% / 3 - 20px);
}

main .col article .article__images img {
    width: calc(50% - 10px);
}

main article .article__images img + img {
    margin-left: 20px;
}

/* ---------- text page styles ---------- */

main article.text,
main article.text * {
    color: #303030;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: calc(19 / 16);
}

main article.text a {
    color: #1976d2;
    font-weight: normal;
    transition: color 0.15s ease-in-out;
}

main article.text a:hover {
    color: #f8c81c;
}

main article.text a[href^="mailto:"] {
    padding-left: 28px;
    position: relative;
}

main article.text a[href^="mailto:"]::before {
    background: transparent url('/images/icons/mail.svg') no-repeat scroll center;
    background-size: contain;
    content: '';
    height: 20px;
    left: 0;
    position: absolute;
    top: 0;
    width: 20px;
}

main article.text a.doc {
    background: transparent url('/images/icons/document.svg') no-repeat scroll left center;
    min-height: 22px;
    padding-left: 28px;
}

main article.text h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px;
}

main article.text > * + h2 {
    margin-top: 20px;
}

main article.text h3 {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

main article.text h4 {
    font-size: 16px;
    font-style: italic;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}

main article.text p {
    /*text-indent: 2ch;*/
}

main article.text > small {
    display: block;
    font-size: 12px;
}

main article.text > h3 + small {
    margin-top: 10px;
    opacity: 0.8;
    text-align: center;
}

main article.text p.bold {
    font-weight: bold;
}

main article.text p.right {
    text-align: right;
}

main article.text ul,
main article.text ol,
main article.text ul li,
main article.text ol li {
    line-height: calc(19 / 16);
}

main article.text ul li,
main article.text ol li {
    margin-left: 25px;
}

main article.text .dl + .dl {
    border-top: solid 1px rgba(236, 240, 241, 0.5);
    margin-top: 15px;
    padding-top: 10px;
}

main article.text .dl .dt {
    font-weight: bold;
}

main article.text table {
    margin-bottom: 40px;
    width: 100%;
}

main article.text table.small {
    margin: 20px 0 40px;
    min-width: 400px;
}

main article.text table,
main article.text table * {
    border: none;
    border-collapse: collapse;
}

main article.text table td,
main article.text table th {
    padding: 8px 4px;
}

main article.text table thead tr,
main article.text table tbody tr:nth-of-type(even) {
    background-color: rgba(236, 240, 241, 0.5);
}

.table-info table {
    margin-bottom: 40px;
    width: 100%;
}

.table-info table.small {
    margin: 20px 0 40px;
    min-width: 400px;
}

.table-info table,
.table-info table * {
    border: none;
    border-collapse: collapse;
}

.table-info table td,
.table-info table th {
    padding: 8px 4px;
    vertical-align: top;
    text-align: left;
}

.table-info table thead tr,
.table-info table tbody tr:nth-of-type(even) {
    background-color: rgba(236, 240, 241, 0.5);
}

main article.text u {
    text-decoration: underline;
}

main article.text figure img {
    height: auto;
    width: 100%;
}

main article.text figure,
main article.text img {
    display: inline-block;
    margin: 16px 0;
}

main article.text figure + figure {
    display: inline-block;
}

main article.text figure img {
    margin: 0 0 8px !important;
}

main article.text img.float,
main article.text figure.float {
    float: left;
    height: auto;
    margin-right: 20px;
    width: calc(50% - 10px);
}

main article.text figure.float.left,
main article.text img.float.left {
    float: left;
    margin-right: 20px;
    margin-left: 0;
}

main article.text figure.float.right,
main article.text img.float.right {
    float: right;
    margin-left: 0;
    margin-right: 0;
}

main article.text img.full-width,
main article.text figure.full-width {
    height: auto;
    width: 100%;
}

main article.text figcaption {
    font-style: italic !important;
    font-weight: normal !important;
}

main article.text .person {
    font-size: 0;
}

main article.text .person + .person {
    border-top: solid 1px #f8c81c;
    margin-top: 30px;
    padding-top: 30px;
}

main article.text .person > div {
    display: inline-block;
    font-size: initial;
    vertical-align: top;
    width: 180px;
}

main article.text .person > div + div {
    width: calc(100% - 180px);
}

main article.text .person > div:first-of-type > div {
    border-radius: 100%;
    height: 150px;
    overflow: hidden;
    width: 150px;
}

main article.text .person > div:first-of-type > div > img {
    height: auto;
    margin: 0;
    max-width: 100%;
}

main article.text .person > div:first-of-type > div.no-photo {
    box-sizing: border-box;
    border: solid 1px #f8c81c;
    padding: 49px;
}

main article.text .person > div:first-of-type > div.no-photo > img {
    height: 50px;
    opacity: 0.5;
    width: 50px;
}

main article.text .person > div:last-of-type {
    /**/
}

main article.text .person > div:last-of-type > div:nth-of-type(1) {
    text-transform: uppercase;
}

main article.text .person > div:last-of-type > div:nth-of-type(2) {
    color: #f8c81c;
    font-weight: bold;
    margin: 5px 0 16px;
}

main article.text .person > div:last-of-type > div:last-of-type > * {
    display: block;
    opacity: 0.5;
}

main article.text .person > div:last-of-type > div:last-of-type > b {
    font-weight: normal !important;
}

main article.text div.phones table tr td:first-of-type {
    font-weight: bold;
    width: 160px;
}

main article.text div.phones table tr td:not(:first-of-type) {
    width: auto;
}

main article.text .addresses div {
    line-height: 20px;
    margin-top: 10px;
    min-height: 20px;
}

main article.text .addresses div svg {
    display: inline-block;
    height: 20px;
    margin-right: 8px;
    vertical-align: top;
    width: 20px;
}

main article.text .addresses div svg path {
    fill: #f8c81c;
}

main article.text hr {
    background-color: rgba(236, 240, 241, 0.5);
    border: none;
    height: 1px;
    width: 100%;
}

#yaMap, .ya-map {
    height: 288px;
}

.ya-map {
    margin-bottom: 40px;
}

/* -------------------------------------- */

.col__block {
    color: #303030;
    padding: 30px;
    position: relative;
}

.col__block + .col__block {
    margin-top: 25px;
}

.col__block--yellow {
    background-color: #f8c81c;
    min-height: 390px;
}

.col__block--blue {
    background-color: rgba(137, 200, 233, 0.5);
}

.col__block:first-of-type {
    margin-top: -350px;
    position: relative;
    z-index: 2;
}

.col__block small {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.col__block h3 {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    margin: 12px 0;
}

.col__block p {
    font-size: 16px;
    line-height: 1.188;
    margin: 12px 0;
}

.col__block .details {
    color: #303030;
    font-size: 12px;
    line-height: 1.25;
    margin: 12px 0;
    text-decoration: underline;
}

.col__block .question {
    color: #303030;
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.188;
    margin: 12px 0;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.col__block .question:hover,
.col__block .details:hover {
    color: #1976d2;
}

.col__block input {
    display: none !important;
}

.col__block .page-switch {
    height: 10px;
    margin-top: 20px;
    width: 100px;
}

.col__block .page-switch label {
    background-color: #474747;
    border: solid 2px transparent;
    border-radius: 100%;
    cursor: pointer;
    display: inline-block;
    height: 10px;
    transition: all 0.15s ease-in-out;
    vertical-align: top;
    width: 10px;
}

.col__block .page-switch label + label {
    margin-left: 16px;
}

.col__block .page-switch label:hover {
    background-color: white;
    border-color: white;
}

.col__block > a {
    bottom: 25px;
    display: block;
    font-size: 0;
    height: 32px;
    position: absolute;
    right: 25px;
    width: 32px;
}

.col__block > a img {
    height: 32px;
    /*transition: filter 0.15s ease-in-out;*/
    width: 32px;
}

.col__block > a:hover img {
    filter: brightness(500%);
}

.col__block > div[data-page-id] {
    left: 30px;
    min-height: 300px;
    opacity: 0;
    position: absolute;
    top: 30px;
    transition: opacity 0.15s ease-in-out;
    width: calc(100% - 60px);
    pointer-events:none;
}

/* ---------- text page ---------- */

.breadcrumbs {
    font-size: 0;
}

.breadcrumbs > * {
    color: #8c8c8c;
    display: inline-block;
    font-size: 12px;
    line-height: 1.25;
    vertical-align: top;
}

.breadcrumbs > * + *::before {
    color: #8c8c8c;
    content: '/';
    display: inline-block;
    padding: 0 8px;
}

.breadcrumbs > a {
    color: #1976d2;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.breadcrumbs > a:hover {
    color: #f8c81c;
}

main h1 {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.188;
    margin-top: 10px;
}

main .top-block {
    padding: 0 20px;
}

main .side-block ~ article,
main .side-block ~ .photogallery,
main .text-data {
    width: 75%;
}

main .side-block {
    padding: 20px;
    position: fixed;
    right: calc(50% - 640px + 64px);
    top: 116px;
    width: 288px;
}

main .side-block > * {
    font-size: 16px;
    line-height: 1.188;
}

main .side-block > div {
    color: #8c8c8c;
    margin-bottom: 10px;
}

main .side-block > a {
    color: #1976d2;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

main .side-block > a + a::before { /* this trick makes every <a> follow from a new line being inline element */
    content: '';
    display: block;
    height: 10px;
}

main .side-block > a:hover {
    color: #f8c81c;
}

main .side-block > a.active {
    color: #f8c81c;
}

article.question {
    /**/
}

article.question p {
    color: #303030;
    font-size: 16px;
    line-height: 1.188;
}

article.question p.q {
    font-weight: bold;
}

article.question p + p {
    margin-top: 16px;
}

.photogallery {
    align-content: flex-start;
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 0;
    justify-content: flex-start;
    margin-top: -12px;
    padding-right: 32px;
}

.photogallery a {
    border-bottom: solid 1px #f8c81c;
    display: block;
    margin-left: 32px;
    padding: 36px 0 16px;
    width: calc((100% - 64px) / 3);
}

.photogallery a:nth-of-type(3n+1) {
    margin-left: 0;
}

.photogallery a img {
    height: auto;
    margin-bottom: 20px;
    width: 100%;
}

.photogallery a small {
    color: #303030;
    font-size: 12px;
    line-height: 1.25;
}

.photogallery a small .gray {
    opacity: 0.5;
}

.photogallery a div {
    color: #1976d2;
    font-size: 16px;
    line-height: 1.188;
    margin-top: 5px;
    text-decoration: underline;
}

.text-data {
    color: #303030;
    font-size: 16px;
    line-height: 1.188;
    padding: 20px;
}

.text-data > * {
    margin: 12px 0;
}

.text-data ul {
    margin-left: 20px;
}

.text-data ul.bold li {
    font-weight: bold;
}

main article p {
    color: #303030;
    font-size: 16px;
    line-height: 1.188;
    margin: 16px 0;
}

.image-slider {
    height: 160px;
    position: relative;
    width: 75%;
}

.image-slider__button {
    background-color: #ebebeb;
    border-radius: 100%;
    cursor: pointer;
    height: 37px;
    left: 0;
    padding: 3px 2px;
    position: absolute;
    top: 61.5px;
    transform: rotate(90deg);
    transition: background-color 0.15s ease-in-out;
    width: 37px;
}

.image-slider__button:hover {
    background-color: #f8c81c;
}

.image-slider__button + .image-slider__button {
    left: auto;
    right: 0;
    transform: rotate(-90deg);
}

.image-slider__button img {
    height: 31px;
    width: 33px;
}

.image-slider__container {
    height: 160px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: calc(100% - 100px);
}

.image-slider__scroller {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    position: absolute;
    top: 0;
}

.image-slider__scroller > img {
    cursor: pointer;
    height: auto;
    width: 220px;
}

/* ---------- section blocks ---------- */

.section-blocks {
    align-content: flex-start;
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-blocks > a {
    background-color: #fafafa;
    display: block;
    height: 100px;
    margin-bottom: 20px;
    padding: 20px;
    text-decoration: none;
    width: calc(25% - 20px);
}

/* ---------- error 404 ---------- */

.error-404 {
    align-items: center;
    display: flex;
    height: calc(100vh - 128px);
    justify-content: center;
}

.error-404 svg {
    height: auto;
    width: 50vw;
}

/* ---------- search results ---------- */

header.search {
    background-color: #1976d2;
    border-bottom-color: #1976d2;
}

header.search nav a {
    color: white;
}

header.search .header__logo {
    background-color: white;
    margin-left: -20px;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
    width: 163px;
}

header.search .header__menu--visually-impaired a {
    color: white;
}

header.search .header__menu--menu {
    display: none;
}

header.search .header__menu--search {
    background-color: white;
    margin-right: 50px;
}

header.search .header__menu img:first-of-type {
    display: none;
}

header.search .header__menu img + img {
    display: block;
}

.search-field {
    background-color: #1976d2;
    padding: 64px;
}

.search-field .input-group {
    font-size: 0;
    height: 45px;
    position: relative;
    width: 100%;
}

.search-field .input-group input {
    border: none;
    display: inline-block;
    height: 45px;
    line-height: 45px;
    vertical-align: top;
}

.search-field .input-group input[type="text"] {
    background-color: rgba(209, 209, 209, 0.2);
    color: white;
    font-size: 16px;
    padding: 0 22px;
    width: calc(100% - 140px);
}

.search-field .input-group input[type="text"]::-webkit-input-placeholder {color: white; opacity: 0.8}
.search-field .input-group input[type="text"]::-moz-placeholder {color: white; opacity: 0.8}
.search-field .input-group input[type="text"]:-ms-input-placeholder {color: white; opacity: 0.8}
.search-field .input-group input[type="text"]:-moz-placeholder {color: white; opacity: 0.8}

.search-field .input-group input[type="submit"] {
    background-color: white;
    color: #1976d2;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding-left: 36px;
    text-transform: uppercase;
    width: 140px;
}

.search-field .input-group input[type="submit"] + img {
    height: 28px;
    pointer-events: none;
    position: absolute;
    right: 86px;
    top: 8.5px;
    width: 28px;
}

.search-result {
    /**/
}

.search-result li {
    margin-top: 30px;
}

.search-result li a {
    display: inline-block;
}

.search-result li a h2 {
    color: #1976d2;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    margin-left: 0;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.search-result li a:hover h2 {
    color: #f8c81c;
}

.search-result__text {
    font-size: 16px;
    line-height: 1.188;
    margin-top: 15px;
}

.search-result__text .found {
    background-color: #ffe866;
}

.search-result__path {
    color: #8c8c8c;
    font-size: 12px;
    line-height: 1.25;
    margin-top: 15px;
}

.search-result__path * {
    color: #8c8c8c;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.search-result__path *:hover {
    color: #f8c81c;
}

.pagination {
    margin: 40px 0;
}

.pagination > div > * {
    color: #1976d2;
    font-size: 16px;
    line-height: 1.875;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.pagination > div > * + * {
    margin-left: 12px;
}

.pagination > div > .disabled,
.pagination > div > .current {
    pointer-events: none;
    text-decoration: none;
}

.pagination > div > .disabled {
    color: #8c8c8c;
}

.pagination > div > .current {
    color: initial;
}

.pagination > div > *:hover {
    color: #f8c81c;
}

.pagination .pagination__arrows > * {
    display: inline-block;
    position: relative;
}

.pagination .pagination__arrows > *:first-of-type {
    padding-left: 16px;
}

.pagination .pagination__arrows > *:last-of-type {
    padding-right: 16px;
}

.pagination .pagination__arrows > *::before,
.pagination .pagination__arrows > *::after {
    content: '';
    display: block;
    position: absolute;
}

.pagination .pagination__arrows > *::before {
    background-color: #1976d2;
    height: 1px;
    top: 14px;
    transition: background-color 0.15s ease-in-out;
    width: 10px;
}

.pagination .pagination__arrows > *:first-of-type::before {
    left: 0;
}

.pagination .pagination__arrows > *:last-of-type::before {
    right: 0;
}

.pagination .pagination__arrows > *::after {
    border: solid 1px transparent;
    border-left-color: #1976d2;
    border-top-color: #1976d2;
    box-sizing: border-box;
    content: '';
    display: block;
    height: 5px;
    position: absolute;
    top: 12px;
    transition: all 0.15s ease-in-out;
    width: 5px;
}

.pagination .pagination__arrows > *:first-of-type::after {
    left: 0;
    transform: rotate(-45deg);
}

.pagination .pagination__arrows > *:last-of-type::after {
    right: 0;
    transform: rotate(135deg);
}

.pagination .pagination__arrows > .disabled::before {
    background-color: #8c8c8c;
}

.pagination .pagination__arrows > .disabled::after {
    border-left-color: #8c8c8c;
    border-top-color: #8c8c8c;
}

.pagination .pagination__arrows > *:hover::before {
    background-color: #f8c81c;
}

.pagination .pagination__arrows > *:hover::after {
    border-left-color: #f8c81c;
    border-top-color: #f8c81c;
}

#ribbon {
    height: 100px;
    position: fixed;
    right: 0;
    top: calc(50vh - 50px);
    width: 50px;
    z-index: 1000000;
}

/* ========== MEDIA QUERIES ========== */

@media screen and (max-width: 1279px) {
    .menu > div {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .menu__items {
        flex: 0 0 calc(100% / 3);
    }

    main .side-block {
        right: 0;
    }
}

@media screen and (max-width: 1260px) {
    header.main {
        height: 64px;
    }

    header nav {
        display: none;
    }

    header.main .header__menu--visually-impaired a {
        color: #1976d2;
    }

    header.main .header__logo {
        flex-direction: row;
        height: 64px;
        justify-content: space-between;
        margin-right: 35px;
        width: 123px;
    }

    header.main .header__logo div {
        display: none;
    }
}

@media screen and (max-width: 999px) {
    .menu > div {
        padding-top: 96px;
    }

    .menu__items {
        flex: 0 0 50%;
    }

    main .side-block {
        display: none;
    }

    main article,
    main .photogallery,
    main .text-data,
    .image-slider {
        width: 100% !important;
    }

    .photogallery {
        padding-right: 0;
    }
}

@media screen and (max-width: 899px) {
    main {
        width: calc(100vw - 40px);
    }

    .main-background > div:not(.page-switch) {
        padding-left: 40px;
        padding-right: 40px;
    }

    .main-background > div.page-switch {
        left: 40px;
    }

    .photogallery a {
        margin-left: 20px;
        width: calc((100% - 40px) / 3);
    }

    .search-field {
        padding: 20px;
    }
}

@media screen and (max-width: 799px) {
    main > .col {
        width: 100%;
    }

    main > .col + .col {
        display: none;
    }

    .main-background > div:not(.page-switch) h1 {
        width: 100%;
    }
}

@media screen and (max-width: 719px) {
    .content {
        min-height: calc(100vh - 128px);
    }

    footer {
        height: 128px;
        max-height: 128px;
    }

    footer .footer__right {
        display: none;
    }

    .footer__adm-links {
        border-left: solid 1px rgba(236, 240, 241, 0.5);
        border-top: solid 1px rgba(236, 240, 241, 0.5);
        display: block;
        margin-left: 64px;
        padding-left: 25px;
    }

    .footer__adm-links > a {
        /**/
    }
}

@media screen and (max-width: 639px) {
    header.main:not(.fixed-header) {
        background-color: white;
        height: 64px;
    }

    header.main:not(.fixed-header) .header__logo {
        display: inline-flex;
        flex-direction: row;
        height: 64px;
        justify-content: space-between;
        margin-right: 35px;
        width: 123px;
    }

    header.main:not(.fixed-header) .header__logo div {
        display: none;
    }

    header.main:not(.fixed-header) .header__menu--visually-impaired a {
        color: #1976d2;
    }

    main article.text .person > div {
        display: block;
        width: 100%;
    }

    main article.text .person > div + div {
        margin-top: 30px;
    }

    main article.text .person > div img {
        margin: 0 !important;
    }
}

@media screen and (max-width: 599px) {
    .error-404 svg {
        width: 100%;
    }
}

@media screen and (max-width: 539px) {
    .main-background > div:not(.page-switch) {
        justify-content: center;
    }

    .main-background > div:not(.page-switch) h1 {
        font-size: 40px;
    }
}

@media screen and (max-width: 500px) {
    .article__preview img, .news img {
        width: 100%!important;
        height: auto!important;
    }
}

@media screen and (max-width: 479px) {
    .photogallery a {
        margin-left: 20px !important;
        width: calc(50% - 10px);
    }

    .photogallery a:nth-of-type(odd) {
        margin-left: 0 !important;
    }

    main article .article__images img {
        width: calc(50% - 10px);
    }

    main article .article__images img:nth-of-type(n+3) {
        display: none;
    }

    main article.text img {
        float: none !important;
        margin: 16px 0 !important;
        width: 100% !important;
    }

    .content {
        min-height: calc(100vh - 192px);
    }

    footer {
        height: 192px;
        max-height: 192px;
    }

    .footer__adm-links {
        height: 128px;
    }

    .footer__adm-links > a {
        display: flex;
    }
}

@media screen and (max-width: 449px) {
    .main-background > div:not(.page-switch) h1 {
        font-size: 32px;
        line-height: 1.05;
    }

    .main-background > div.page-switch {
        bottom: 20px;
    }

    header .header__menu--visually-impaired {
        display: none;
    }
}

@media screen and (max-width: 399px) {
    main .col article .article__images img {
        display: block;
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .menu__search input {
        width: calc(100% - 45px);
    }

    .menu__search button {
        width: 45px;
    }

    .menu__search button span {
        display: none;
    }

    .menu__search button img {
        margin: 0;
    }

    .search-field .input-group input[type="text"] {
        width: calc(100% - 45px);
    }

    .search-field .input-group input[type="submit"] {
        font-size: 0;
        width: 45px;
    }

    .search-field .input-group input[type="submit"] + img {
        right: 8.5px;
    }
}

@media screen and (max-width: 359px) {
    main article .article__images img {
        width: 100%;
    }

    main article .article__images img + img {
        margin-left: 0;
        margin-top: 20px;
    }
}

@media screen and (max-width: 339px) {
    .footer__logo {
        padding: 0 10px;
        width: 245px;
    }
}