@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400&subset=cyrillic');

*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: transform .2s ease-out;
    scroll-behavior: smooth;
}

/* decorate styles */

body {
    font: 300 14px/18px 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    position: relative;
    color: #000;
}
a:before {
    position: absolute;
    bottom: -1px; left: 0;
    content: " ";
    width: 100%;
    height: 1px;
    background: Lavender;
}
a:hover::before {
    display: none;
}
a:after {
    position: absolute;
    bottom: -1px; left: 0;
    content: " ";
    width: calc(100% + 2px);
    height: 60%;
    background: Lavender;
    z-index: -1;
    transform-origin: left bottom;
    transform: scaleX(0);
}
a:hover::after {
    transform: scaleX(1);
}

.text-bg {
    position: relative;
    line-height: 36px;
}
.text-bg:after {
    position: absolute;
    bottom: 0; left: 0;
    content: " ";
    width: calc(100% + 2px);
    height: 60%;
    background: Lavender;
    z-index: -1;
}

ul {
    list-style: none;
}
li {
    margin-left: 20px;
    position: relative;
}
li:before {
    position: absolute;
    bottom: 0; left: -14px; top: 8px;
    content: " ";
    width: 5px;
    height: 5px;
    border: 1px solid black;
    border-radius: 50%;
}

.text-header {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
}

/* markup styles */

.wrapper {
    max-width: 940px;
    margin: auto;
    padding: 0 20px;
}

.navigation {
    /*position: fixed;*/
    top: 0;
    width: 100%;
    /*display: none;*/
    align-items: center;
    z-index: 3;
    background: #FFF;
    /*height: 45px;*/
    font-size: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.navigation a, #footer a {
    margin-right: 10px;
}

.lang {
    white-space: nowrap;
}

.navigation a {
    display: none;
}

.navigation .lang a {
    display: inline;
}

.section {
    padding-top: 30px;
}

#about {
    /*padding-top: 60px;*/
}

#footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid Lavender;
}
@media (max-width: 768px) {
    a {
        border-bottom: 1px solid lavender;
    }
    a:after, a:before {
        content: none;
    }
}

@media (max-width: 400px) {
    .navigation {
        position: fixed;
    }
    .navigation a {
        display: inline;
    }
    #about {
        padding-top: 60px;
    }
}
