:root {
    --color-bg-header: #627d3e;  /* h1 */
    --color-h2: #4d662a;
    --color-bg-body: #f9faef; /* #eeefe3; */
    --color-bg-article: #FCF9F5;
    --color-article: #1a1c16;
    --color-a: #386662;
    --color-footer: #44483d;
    --font-content: 'Roboto', sans-serif;
    --font-title: 'Lora', serif;
    --margin-lr-p-1250: 30px;
    --margin-l-article-mobile: 13px;
    --margin-r-article-mobile: 17px;
}

body {
    margin: 0;
    font-family: var(--font-content);
    color: var(--color-article);
    font-size: 1.1em;
    line-height: 1.6em;
    background: var(--color-bg-article);
}
@media(min-width: 1250px) {
    body {
        background: var(--color-bg-body);
    }
}

header {
    background: var(--color-bg-header);
    font-family: var(--font-title);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
    box-shadow: 0 25px 40px 0 rgb(0 0 0 / 5%);
}
@media(min-width: 1250px) {
    header {
        max-width: 325px;
        width: 20%;
        height: 100px;
        position: fixed;
        background: rgba(98, 125, 62, 0.7);
        border-radius: 0 0 3px 0;
    }
}


article {
    margin-top: 45px;
    margin-left: var(--margin-l-article-mobile);
    margin-right: var(--margin-r-article-mobile);
    padding-bottom: 20px;
}
@media(min-width: 400px) {
    article {
        margin-top: 0;
    }
}
@media(min-width: 700px) {
    article {
        margin-left: 20px;
        margin-right: 20px;
    }
}
@media(min-width: 941px) {
    article {
        max-width: 900px;
        margin: auto;
    }
}
@media(min-width: 1250px) {
    article {
        background: var(--color-bg-article);
        width: 58%;
        padding-top: 1px;
        box-shadow: 0 25px 40px 0 rgb(0 0 0 / 5%);
    }
}
@media(min-width: 1700px) {
    article {
        max-width: 940px;
    }
}
footer {
    max-width: 860px;
    margin: auto;
    text-align: center;
    padding: 20px;
    color: var(--color-footer);
}

#aside-section, #aside-article {
    display: none;
    width: 350px;
    background: var(--color-bg-body);
    position: fixed;
    top: 0;
    bottom: 0;
    overflow: auto;
    z-index: 14;
}
#aside-article {
    right: 0;
}
@media(min-width: 1250px) {
    #aside-section {
        display: flex!important;
        position: fixed;
        max-width: 325px;
        width: 20%;
        top: 100px;
        height: calc(100vh - 100px);
    }
    #aside-section p {
        display: none;
    }
    #aside-section nav {
        overflow: auto;
    }
    nav::-webkit-scrollbar{width:6px;}
    nav::-webkit-scrollbar-thumb{border-radius:3px;background-color:#E1E4D5}
    #aside-article {
        display: block!important;
        position: fixed;
        right: 0;
        top: 0;
        width: 20%;
    }
    #nav-article {
        background: var(--color-bg-article);
    }
    #nav-article p {
        margin-top: 0px;
        margin-bottom: -10px;
        padding-top: 15px;
    }
}
@media(min-width: 1650px) {
    #aside-article {
        width: 22%;
    }
    #nav-article {
        margin-left: 20px;
        box-shadow: 0 5px 20px 0 rgb(0 0 0 / 5%);
    }
}


li::marker {
    color: var(--color-h2);
}
h1 {
  color: var(--color-bg-header);
  font-size: 2.5em;
  line-height: 1.4em;
  font-family: var(--font-title);
  margin-bottom: 0;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: italic;
}
a {
  color: var(--color-a);
}
@media(max-width: 1249px) {
  article ul, article ol {
    padding-inline-start: 20px;
  }
}
article h2 {
  margin-bottom: 0;
  font-family: var(--font-title);
  color: var(--color-h2);
  font-size: 1.9em;
  line-height: 1.4em;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: italic;
}





figure {
  margin-left: calc(var(--margin-l-article-mobile) * -1);
  margin-right: calc(var(--margin-r-article-mobile) * -1);
  text-align: center;
}
img {margin: 0 auto; max-width: 100%; height: auto;}

figcaption {
  margin-left: var(--margin-l-article-mobile);
  margin-right: var(--margin-r-article-mobile);
}
@media(min-width: 550px) {
    figure, amp-ad.ad-ru {
        margin-left: 0; 
        margin-right: 0;
    }
    figcaption {
        margin-left: 20px; margin-right: 20px;
    }
}
/*@media(min-width: 941px) {
    figure, amp-ad.ad-ru {
        margin-left: 0; margin-right: 0;
    }
}*/



.selected {
  /*font-weight: bold;*/
}
#nav-section a {
  text-decoration: none;
}
#nav-section ul {
  padding-inline-start: 30px;
  list-style-type: circle;
}
#nav-section ul ul {
  padding-inline-start: 20px;
}
p.title {
  font-size: 22px;
  font-family: var(--font-title);
  text-align: center;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
}
#nav-article ul {
  list-style-type: none;
  padding-inline-start: 15px;
  padding-inline-end: 15px;
  color: #2E3E3D;
}
#li-about-content, #li-anchors {
  padding-bottom: 20px;
}
#li-anchors li {
  padding-bottom: 10px;
}
#li-anchors li a {
  color: var(--color-bg-header);
}

.center {
  text-align: center;
}

em, var, i {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: italic;
}
em {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: italic;
}
strong, b {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
}

@media(min-width: 1250px) {
    article h1, article h2, article h3, article h4, article p, figcaption, pre, table, figure {
        margin-left: var(--margin-lr-p-1250);
        margin-right: var(--margin-lr-p-1250);
    }
    article p {
        text-align: left;
    }
    article h1 {
        margin-top: 20px;
    }
    article ul, article ol {
        padding-inline-start: 50px;
        margin-right: var(--margin-lr-p-1250);
    }

}




header div {
    width: 250px;
    height: 100px;
    margin: auto;
}
header a {
    text-decoration: none;
}
header img {
    margin-top: 5px;
    margin-bottom: 5px;
    vertical-align: -18px;
}
header span {
    color: var(--color-bg-article);
    font-size: 22px;
}

select,
::picker(select) {
  appearance: base-select;
}
::picker(select) {
  border: none;
}
select {
    width: 250px;
    /*display: block;*/
    margin: 0px auto;
    font-family: var(--font-content);
    /*font-size: 1em;*/
    font-style: normal;
    color: var(--color-article);
    background: var(--color-bg-article);
}
select {
  flex: 1;
}
select {
  border: 1px solid #dddddd;
  /*background: #eeeeee;*/
  /*padding: 10px;*/
  transition: 0.4s;
}

select:hover,
select:focus {
  background: #dddddd;
}

option {
/*  display: flex;
  justify-content: flex-start;
  gap: 20px;*/
  border: 2px solid #dddddd;
  /*background: #eeeeee;*/
  padding: 5px 10px;
  transition: 0.4s;
}
option:first-of-type {
  border-radius: 8px 8px 0 0;
}
option:last-of-type {
  border-radius: 0 0 8px 8px;
}
option:not(option:last-of-type) {
  border-bottom: none;
}
option:nth-of-type(odd) {
  background: white;
}
option:hover,
option:focus {
  background: rgba(98, 125, 62, 0.7);
  color: white;
}
option:hover {
    background: var(--color-h2);
}
option:checked {
  font-weight: bold;
}



#overlay0, #overlay {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10;
}

#button-sidebar-section, #button-sidebar-article, #button-to-top {
    box-shadow: 0 1px 1px 0 rgba(9, 17, 30,.14), 0 1px 1px -1px rgba(9, 17, 30,.14), 0 1px 5px 0 rgba(9, 17, 30,.12);
    width: 50px;
    height: 40px;
    border-radius: 25%;
    border: none;
    outline: none;
    background: var(--color-bg-article);
    z-index: 10;
    cursor: pointer;
}
#button-sidebar-section, #button-sidebar-article {
    margin-top: 5px;
    position: sticky;
    top: 0;
}
#button-sidebar-section {
    float: left;
}
#button-sidebar-article {
    float: right;
}
#button-to-top {
    display: none;
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 20;
}
#button-sidebar-section:hover, #button-sidebar-article:hover {
    background: var(--color-bg-body);
}
#button-to-top:hover {
    background: rgba(98, 125, 62, 0.15);
}
#button-to-top:active {
    background: rgba(98, 125, 62, 0.07);
}
@media(min-width: 400px) {
    #button-sidebar-section, #button-sidebar-article {
        margin-top: -45px;
    }
}
@media(min-width: 1250px) {
    #button-sidebar-section, #button-sidebar-article {
        display: none;
    }
}