*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

@font-face {
    font-family: 'OpenSans';
    src: url('/ru/assets/fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'OpenSans';
    src: url('/ru/assets/fonts/OpenSans-Italic.ttf') format('truetype');
    font-style: italic;
}

@font-face {
    font-family: 'OpenSans';
    src: url('/ru/assets/fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'OpenSans';
    src: url('/ru/assets/fonts/OpenSans-BoldItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: bold;
}

body {
    font: 18px OpenSans;
    line-height: 1.4;
}


.site-page {
    font: 18px OpenSans;
    line-height: 1.4; 
}

#snack-root, #question-root, #popup-root {
    font-size: 15px;
    font-family: Arial, sans-serif;
}

h1 {
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    color: #404040;
    margin-bottom:40px;
    line-height: 1.2;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 20px;
    color: rgb(26, 49, 25);
}

h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 20px;
    color: black;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

ol {
    list-style-type: decimal;
    margin-left: 15px;
    margin-bottom: 5px;
}

ul {
    list-style-type: disc;
    margin-left: 17px;
    margin-bottom: 5px;
}

p, li {
    margin-bottom: 10px;
    text-align: justify;
}

ul + p, ol + p {
    margin-top: 25px;
}

.cont-block {
    display: inline-block;
    width: 400px;
    max-width: 100vw;
    padding: 20px;
    padding-left: 30px;
    padding-right: 30px;
    vertical-align: top;
    border-radius: 6px;
    text-align: left;

}

.cont-section {    
    vertical-align: top;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

@media (max-width: 700px) {
    .cont-section {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}


.examples-block {
    text-align: center;
    padding-top: 20px;
}

a.normal {
    display: inline-block;
    padding: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: solid 1px #a0a0a0;    
    border-radius: 5px;
    white-space: nowrap;
}

a.normal:hover {
    background: #d0ffd0;
}

a.normal:link,
a.normal:visited {
    color: black;
    text-decoration: none;
}

a.action {
    display: inline-block;
    padding: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    background: darkgreen;
    white-space: nowrap;
}

a.action:hover {
    background: #004000;
}

a.action:link,
a.action:visited {
    color: white;
    text-decoration: none;
}

.logo-holder {
    text-align: center;
}

.logo-holder img {
    display: inline-block;
    width: 500px;
    max-width: 100vw;
}

.title {
    display: inline-block;
    font-size: 22px;
    text-align: left;
    padding: 20px;
}

.logo-container {
    display: inline-block;
    vertical-align: bottom;
}

.logo-container img {
    width:50px;
    height:50px;
    display: inline-block;
}

.logo-container a:link, .logo-container a:visited {
    color: black;
    text-decoration: none;
}

.logo-text {
    display: inline-block;
    vertical-align: bottom;
    padding-left: 10px;
    transition: color 1s;
    color:black;
}

.mobile-menu {
    display: inline-block;
    user-select: none;
    cursor: pointer;
    line-height: 50px;
    right: 5px;
    position: absolute;
    top: 0px;    
}

.mobile-menu span {
    display: inline-block;
    vertical-align: middle;
    font-size:36px;
}

.mobile-menu-text {
    display: inline-block;
    vertical-align: middle;
}

.mobile-menu-body {
    display: none;
    position: fixed;
    left:0px;
    top:0px;
    width:100vw;
    height:100vh;
    z-index: 100;
    background: white;
    color: black;
    opacity: 0;
    transition: opacity 500ms;
}

.mobile-menu-item {
    display: block;
    padding: 20px;
}

a.mobile-menu-item:link, a.mobile-menu-item:visited {
    color: black;
    text-decoration: none;
}

a.mobile-menu-item:hover {    
    text-decoration: underline;
}

.mobile-menu-item img {
    width: 25px;
    height: 25px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;;
}


.content {
    margin: auto;
    width: 940px;
    max-width: 100vw;
    padding: 20px;
}

.editing-vid {    
    width: 810px;
    max-width: 100%;
    margin-bottom: 5px;
}

.ill {
    width: 900px;
    max-width: 100%;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ill-block {
    text-align: center;
    margin-top: 10px;
}

.ill-block p {
    font-size: 15px;
    text-align: center;
    margin: 0px;
    margin-bottom: 20px;
}

.ill-title {
    font-weight: bold;
}

.article-header {
    display: block;
    position: relative;
    height: 70px;
    white-space: nowrap;
    border-bottom: solid 1px #d0d0d0;
}

.logo-link {
    display: inline-block;
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    height: 49px;    
}

.logo-link img {
    display: inline-block;
    height: 49px;
}

.right-menu {
    display: inline-block;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
}

.st-round-button {
    display: inline-block;
    height: 50px;
    line-height: 48px;
    border-radius: 25px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;    
    cursor: pointer;
    user-select: none;
}

.st-round-button:active {
    transform: translateY(3px);
}

.st-round-button:hover {
    border: solid 1px #004000;
    background: #004000;
    color: white;
}

a.st-round-button {
    text-decoration: none;
}

.st-simple-button, .cta-button {
    color: white;
    background: #447C42;
    border: solid 1px #447C42;
}

a.st-simple-button:link, a.st-simple-button:visited {
    color: white;
}

a.active-button:link, a.active-button:visited {
    color: #447C42;
}

a.st-round-button:hover {
    color: white;
}


.active-button {
    color: #447C42;
    background: white;
    border: solid 1px #447C42;
}

.mid-menu {
    display: inline-block;
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
}

.mid-menu a {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

.mid-menu a:link, .mid-menu a:visited {
    text-decoration: none;
    color: #404040;
}

.mid-menu a:hover {
    text-decoration: underline;
    color: black;
}

.left-menu {
    display: inline-block;
    position: absolute;
    left:10px;
    top:50%;
    transform: translateY(-50%);
}

.left-menu a {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

.left-menu a:link, .left-menu a:visited {
    text-decoration: none;
    color: #404040;
}

.left-menu a:hover {
    text-decoration: underline;
    color: black;
}

.mid-spacer {
    display: inline-block;
    width: 100px;
}

.main-section {
    background-image: url('/ru/assets/images/aage.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 40px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.main-part {
    padding: 20px;
    background: rgb(0, 80, 0, 0.5);
    color: white;
    text-align: left;
}

.main-part .st-round-button{
    width: 300px;
    max-width: 100%;
    white-space: nowrap;
}

@media only screen and (max-width: 899px) {
    .main-part + .main-part {
        margin-top: 20px;
    }
}

@media only screen and (min-width: 900px){
    .main-container {
        display: flex;    
        flex-wrap: wrap;
        justify-content: space-between;        
    }

    .main-part {
        margin-bottom: 0px;
        margin-top: 0px;
    }

    .main-part {
        width: calc(50% - 10px);
    }

    .main-part:nth-child(3n) { width: 100%; margin-top: 20px; }
}


@media only screen and (min-width: 1550px) {
    .main-container {
        display: flex;    
        flex-wrap: unset;
        justify-content: unset;
    }

    .main-part {
        flex-grow: 1;
        margin-bottom: 0px;
        margin-top: 0px;
        width: auto;
    }

    .main-part + .main-part {
        margin-left: 20px;
    }
    .main-part:nth-child(3n) { width: auto; margin-top: 0px; }
}

.main-part h2 {
    color: white;
    font-weight: bold;
    margin-top: 0px;
}

.main-part p {
    text-align: left;
}


.title-header {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;    
}

.slogan {
    padding-top: 10px;
    color: #505050;
    font-weight: bold;    
}

.pro {
    color: green;
}

.title-logo {
    display: inline-block;
    vertical-align: top;
    height: 120px;
    max-width: 90%;
}

.cont-section-img {
    display: inline-block;
    width: 400px;
    padding-top:50px;
    max-width: 100%;
}

.cont-section-img-wide {
    display: inline-block;
    width: 400px;
    padding-top:50px;
    max-width: 100%;
}

@media (max-width: 700px) {
    .cont-section-img-wide {
        display: none;
        width: 400px;
        padding-top:50px;
        max-width: 100%;
    }    
}

.cont-section-img-small {
    display: none;
    width: 400px;
    padding-top:50px;
    max-width: 100%;
}   

@media (max-width: 700px) {
    .cont-section-img-small {
        display: inline-block;
        width: 400px;
        padding-top:50px;
        max-width: 100%;
    }    
}

.mobile-header {
    display: block;
    position: relative;
    height: 50px;
    white-space: nowrap;
    border-bottom: solid 1px #d0d0d0;
}


.mobile-only-wide {
    display: none;
}

.desktop-only-wide {
    display: block;
}

@media (max-width: 800px) {
    .mobile-only-wide {
      display: block;
    }
    .desktop-only-wide {
        display: none;
    }    
}

#open-menu-button, #close-menu-button {
    display: inline-block;
    position: absolute;
    cursor: pointer;
    width: 49px;
    height: 49px;
    right: 0px;
    top: 0px;
}

#mobile-menu {
    border-bottom: solid 1px #d0d0d0;
}

#mobile-menu a {
    display: block;
    padding:30px;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

#mobile-menu a:first-child {
    padding-top: 30px;
}

#mobile-menu a:last-child {
    padding-bottom: 30px;
}


#mobile-menu a:link, #mobile-menu a:visited {
    color: #404040;
}

.link-container {
    text-align: center;
}

.download-link {
    display: inline-block;
    color: white;
    background: #004000;
    width: 300px;
    line-height: 50px;
    border-radius: 5px;
    margin: 10px;
}

a.download-link:link, a.download-link:visited {
    text-decoration: none;
}

.footer {
    position: relative;
    background: #1A1A1A;
    color: white;
    padding-top: 100px;
    padding-bottom: 100px;
}

.footer p {
    text-align: left;
}

.footer-mid {
    margin: auto;
    width: 900px;
    max-width: calc(100% - 40px);
}

.footer a:link, .footer a:visited {
    color: white;
}

.middle {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
} 

#cookies-popup {
    display: none;
    position: fixed;
    left: 10px;
    bottom: 10px;
    background: white;
    border: solid 1px #447C42;
    border-radius: 3px;
    padding: 10px;
    z-index: 10;
    box-shadow: 0px 1px 9px 0px rgba(100,100,100,0.75);
    max-width: calc(100vw - 20px);
    width: 400px;
    font-size: 14px;
}

.small-button {
    display: inline-block;
    padding: 10px;
    border-radius: 3px;
    background: #447C42;
    color: white;
    user-select: none;
    cursor: pointer;
}

.small-button:active {
    transform: translateY(3px);
}

.figure {
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}

.button-div {
    margin-bottom: 20px;
    text-align: left;
  }
  .button-div a {
    display: inline-block;
    width: 200px;
    padding: 20px;
    border-radius: 4px;
    color: white;
    background: #007820;      
    cursor: pointer;
    user-select: none;
  }    
  .button-div a:link, .button-div a:visited{
    color: white;
    text-decoration: none;
  }        

  .button-div a:hover {
    background: #015216;
  }

  .button-div a:active {
    background: #003b0f;
  }   

@media screen and (max-width: 979px) {
  a.optional {
    display: none;
  }
}