/* TO_DO в шрифтах обязательно прописывать serif или sans-serif, woff и прочие форматы добавить */
@font-face {
    font-family: 'Alegreya';
    src: url("../fonts/Alegreya-VariableFont_wght.ttf");
}

@font-face {
    font-family: 'Alegreya Sans';
    font-weight: 400;
    src: url("../fonts/AlegreyaSans-Regular.ttf");
}

@font-face {
    font-family: 'Alegreya Sans';
    font-weight: 500;
    src: url("../fonts/AlegreyaSans-Medium.ttf");
}

@font-face {
    font-family: 'Alegreya Sans';
    font-weight: 700;
    src: url("../fonts/AlegreyaSans-Bold.ttf");
}

@font-face {
    font-family: 'Alegreya Sans';
    font-weight: 900;
    src: url("../fonts/AlegreyaSans-Black.ttf");
}

@font-face {
    font-family: 'Spectral';
    font-style: normal;
    src: url("../fonts/Spectral-Regular.ttf");
}

@font-face {
    font-family: 'Spectral';
    font-style: italic;
    src: url("../fonts/Spectral-Italic.ttf");
}

body {
    background: #000;
    margin: 0;
    width: 100%;
    height: 100%;
    /* Можно срау задавать белый цвет и основной шрифт всему тексту, другие цвета и шрифты - исключение */
    /* font-family: 'Spectral', serif; */
    color: white;
  }

  ul, ol {
    padding-inline-start: 25px;
    margin-top: 8px;
  }

  .wp-block-image {
     max-width: 585px;
  }

@media (min-width: 320px) {
    body {
        background: #231E1C;
      }
}

@media (min-width: 1000px) {
    body {
        background: #1C1716;
      }
}

.container {
    background: #231E1C;
    overflow: auto;
    border-radius: 2px;
  }

footer {
   background: #231E1C;
   overflow: hidden;
   clear: both;
}

footer p {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 148%;
    color: #FFFFFF;
}

.footer-container {
    margin-top: 20px;
    border-top: #A1A1A1 solid 1px;
    padding-bottom: 130px;
}

@media (min-width: 320px) {

    .footer-block1 p, .footer-block3 p {
        margin-bottom: 40px;
    }

}

@media (min-width: 800px) {
    .footer-container {
        display: grid;
        grid-template-columns: minmax(auto, 338px) 1fr 182px;
        gap: 0;
    }

    .it-coop-logo {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .footer-block1 p {
        margin-bottom: 0;
        /*max-width: 584px !important;*/
    }

    .footer-block3 p {
        margin-bottom: 0;
    }

    .footer-block3 {
        position: relative;
        min-height: 120px;
    }

}

@media (min-width: 1000px) {
    .footer-container {
        grid-template-columns: minmax(auto, 584px) 1fr 182px;
    }
}


/*.footer-block1 {
    float: left;
    width: 58.4vw;
    max-width: 584px;
}

.footer-block2 {
    float: right;
    width: 18.2vw;
    max-width: 182px;
    height: 100%;
}

.it-coop-logo {
    align-self: end;
}*/

/*.memorial {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
}*/

@media (min-width: 320px) {

    header,footer,.container {
        width: auto;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .lection-header {
        margin-top: -20px;
    }
}

@media (min-width: 480px) {

    header,footer,.container {
        width: auto;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .lection-header {
        margin-top: -30px;
    }
}

@media (min-width: 800px) {

    header,footer,.container {
        width: auto;
        padding-left: 60px;
        padding-right: 60px;
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .lection-header {
        margin-top: -40px;
    }
}

@media (min-width: 1000px) {

    header,footer,.container {
        width: auto;
        padding-left: 30px;
        padding-right: 30px;
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .lection-header {
        margin-top: 0;
    }
}

@media (min-width: 1280px) {

    header,footer,.container {
        width: 1185px;
        padding-left: 40px;
        padding-right: 40px;
        margin-left: auto;
        margin-right: auto;
    }

}

a {
    text-decoration: none;
}

p, li, .material, .period.active h2 {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 136%;
    color: #FFFFFF;
}

p a {
    word-wrap: break-word;
    color: #BDA797 !important;
    text-decoration: none;
}

figcaption {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    color: #FFFFFF;
}

.head-text a p {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: #B9451C;
    margin: 0;
}

h1, .h1copy {
    font-family: 'Alegreya Sans' !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 100% !important;
    color: #FFFFFF !important;
    padding-left: 20px !important;
}
/* TO_DO important должно использоваться только в крайних случаях, обойтись без него, padding-left: 20px мешает в single.php. */
.post-content h1 {
  padding-left: 0px !important;
}

#materials-id {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 124%;
    color: #FFFFFF;
    margin-top: 0;
}

@media (min-width: 320px) {
    h1, .h1copy {
        font-size: 24px;
    }
    figcaption {
        font-size: 14px;
    }
}

@media (min-width: 480px) {
    h1, .h1copy {
        font-size: 32px;
    }
}

@media (min-width: 800px) {
    figcaption {
        font-size: 16px;
    }
}

@media (min-width: 1000px) {
    h1, .h1copy {
        font-size: 40px;
    }
}

@media (min-width: 320px) {

    header {
        margin-bottom: 20px;
    }

    header nav {
        display: block;
    }

    .menu-header-menu-container {
        width: 89px;
        float: left;
    }

    header .navbar-nav {
        padding-left: 0;
    }

    .head-text {
        padding: 15px 0 15px 0;
    }

    .head-text a p {
        width: 100%;
        font-size: 5.39vw;
        line-height: 5.39vw;
        text-align: justify;
        text-align-last: justify;
    }

    .menu-item {
        padding: 0;
    }

    .menu-item * {
        font-size: 18px;
        line-height: 38px;
    }

    #search-field {
        height: 40px;
        margin: 0;
        clear: both;
    }

    .find-button {
        font-size: 18px;
        line-height: 38px;
        width: 44vw;
    }

    .find-button .find-img {
        width: 13.5px;
        height: 13.75px;
    }

    #search-field .find-img {
        width: 13.5px;
        height: 13.75px;
        padding-top: 13.125px;
        padding-bottom: 13.125px;
    }

    #search-field .search-submit {
        font-size: 18px;
    }

    .find-button-area {
        margin: 0;
        float: right;
    }

  }


@media (min-width: 350px) {

    .head-text a p {
        font-size: 5.46vw;
        line-height: 5.46vw;
    }

}

@media (min-width: 400px) {

    .head-text a p {
        font-size: 5.56vw;
        line-height: 5.56vw;
    }

}

@media (min-width: 450px) {

    .head-text a p {
        font-size: 5.64vw;
        line-height: 5.64vw;
    }

}

@media (min-width: 480px) {

    header {
        margin-bottom: 25px;
    }

    header nav {
        display: block;
    }

    .menu-header-menu-container {
        width: 89px;
        float: left;
    }

    header .navbar-nav {
        padding-left: 0;
    }

    .head-text {
        padding: 20px 0 20px 0;
    }

    .head-text a p {
        width: 100%;
        font-size: 5.68vw;
        line-height: 5.68vw;
    }

    .menu-item {
        font-size: 18px;
        padding: 0;
    }

    .menu-item * {
        line-height: 38px;
    }

    #search-field {
        height: 40px;
        margin: 0;
        clear: both;
    }

    .find-button {
        font-size: 18px;
        line-height: 38px;
        width: 22.5vw;
    }

    .find-button .find-img {
        width: 13.5px;
        height: 13.75px;
    }

    #search-field .find-img {
        width: 13.5px;
        height: 13.75px;
        padding-top: 13.125px;
        padding-bottom: 13.125px;
    }

    #search-field .search-submit {
        font-size: 18px;
    }

    .find-button-area {
        margin: 0;
        float: right;
    }

  }

  @media (min-width: 500px) {

    .head-text a p {
        font-size: 5.7vw;
        line-height: 5.7vw;
    }

  }

  @media (min-width: 550px) {

    .head-text a p {
        font-size: 5.75vw;
        line-height: 5.75vw;
    }

  }

  @media (min-width: 600px) {

    .head-text a p {
        font-size: 5.79vw;
        line-height: 5.79vw;
    }

  }

  @media (min-width: 650px) {

    .head-text a p {
        font-size: 5.83vw;
        line-height: 5.83vw;
    }

  }

  @media (min-width: 700px) {

    .head-text a p {
        font-size: 5.86vw;
        line-height: 5.86vw;
    }

  }

  @media (min-width: 750px) {

    .head-text a p {
        font-size: 5.89vw;
        line-height: 5.89vw;
    }

  }

@media (min-width: 800px) {

    header nav {
        display: block;
    }

    .menu-header-menu-container {
        width: 89px;
        float: left;
    }

    header .navbar-nav {
        padding-left: 0;
    }

    .head-text {
        padding: 20px 0 20px 0;
    }

    .head-text a p {
        width: 100%;
        font-size: 5.213vw;
        line-height: 5.213vw;
    }

    .menu-item {
        padding: 0;
    }

    .menu-item * {
        font-size: 18px;
        line-height: 38px;
    }

    #search-field {
        height: 40px;
        margin: 0;
        clear: both;
    }

    .find-button {
        font-size: 18px;
        line-height: 38px;
        width: 22.5vw;
    }

    .find-button .find-img {
        width: 13.5px;
        height: 13.75px;
    }

    #search-field .find-img {
        width: 13.5px;
        height: 13.75px;
        padding-top: 13.125px;
        padding-bottom: 13.125px;
    }

    #search-field .search-submit {
        font-size: 18px;
    }

    .find-button-area {
        margin: 0;
        float: right;
    }

  }

  @media (min-width: 850px) {

    .head-text a p {
        font-size: 5.274vw;
        line-height: 5.274vw;
    }

  }

  @media (min-width: 900px) {

    .head-text a p {
        font-size: 5.329vw;
        line-height: 5.329vw;
    }

  }

  @media (min-width: 950px) {

    .head-text a p {
        font-size: 5.379vw;
        line-height: 5.379vw;
    }

  }

  @media (min-width: 1000px) {

    header {
        margin-bottom: 0;
    }

    header nav {
        display: grid;
        grid-template-columns: 4fr 1fr 1.5fr;
        gap: 0;
    }

    .menu-header-menu-container {
        width: auto;
        float: none;
    }

    header .navbar-nav {
        padding-left: 40px;
    }

    .head-text {
        padding: 20px 0 20px 0;
    }

    .head-text a p {
        width: auto;
        font-size: 32px;
        line-height: 38px;
        text-align: left;
        text-align-last: left;
    }

    .menu-item {
        padding: 20px;
        width: auto;
    }

    .menu-item * {
        font-size: 18px;
        line-height: 38px;
    }

    #search-field {
        height: 40px;
        margin: 20px;
    }

    .find-button {
        font-size: 18px;
        line-height: 38px;
        width: 100%;
    }

    .find-button .find-img {
        width: 13.5px;
        height: 13.75px;
    }

    #search-field .find-img {
        width: 13.5px;
        height: 13.75px;
        padding-top: 13.125px;
        padding-bottom: 13.125px;
    }

    #search-field .search-submit {
        font-size: 18px;
    }

    .find-button-area {
        margin: 20px;
        float: none;
    }

  }

@media (min-width: 1280px) {

    header nav {
        display: grid;
        grid-template-columns: 5fr 1fr 2fr;
        gap: 20px;
    }

    .menu-header-menu-container {
        width: auto;
        float: none;
    }

    header .navbar-nav {
        padding-left: 40px;
    }

    .head-text {
        padding: 26px 0 24px 0;
    }

    .head-text a p {
        width: auto;
        font-size: 40px;
        line-height: 38px;
    }

    .menu-item {
        padding: 26px 20px 24px 20px;
        width: auto;
    }

    .menu-item * {
        font-size: 20px;
        line-height: 38px;
    }

    #search-field {
        height: 40px !important;
        margin: 26px 20px 24px 20px;
    }

    .find-button {
        font-size: 20px;
        line-height: 38px;
        width: 100%;
    }

    .find-button .find-img {
        width: 15px;
        height: 15px;
    }

    #search-field .find-img {
        width: 15px;
        height: 15px;
        padding-top: 12.5px;
        padding-bottom: 12.5px;
    }

    #search-field .search-submit {
        font-size: 20px;
    }

    .find-button-area {
        margin: 26px 20px 24px 20px;
        float: none;
    }

}

header {
    overflow: hidden;
}

header .navbar-nav {
  margin: 0 !important;
}

.menu-item {
    list-style: none;
}

.menu-item * {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    text-align: right;
    text-decoration: none;
    color: #B9451C;
}

.menu-item a:hover {
    color: #FFF;
}

#search-field {
    display: grid;
    grid-template-columns: 0.1fr 10fr 121px;
    gap: 15px;
    background: #302B29;
    border-radius: 4px;
    border: none;
}

#search-field:not(.hidden) {
    animation-duration: 0.2s;
    animation-name: search-field-animation;
    animation-timing-function: ease;
    animation-fill-mode: none;
}

@keyframes search-field-animation {
    0% {
        float: right;
        width: 20%;
    }
    100% {
        float: right;
        width: 100%;
    }
}

.find-button {
    display: block;
    background: #302B29;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 400;
    color: #BDA797;
    text-align: left;
    border-radius: 4px;
    border: none;
    outline: 0;
    outline-offset: 0;
    padding-right: 7px;
}

#search-field .find-button {
    width: 100% !important;
}

.find-button.button {
   cursor: pointer;
}

.find-button.search-fild_input {
   color: #FFFFFF;
}

.find-button .find-img {
    margin-left: 15px;
    margin-right: 7px;
}

#search-field .find-img {
    margin-left: 15px;
}

#search-field .search-submit {
    background: #BDA797;
    border: none;
    border-radius: 0px 4px 4px 0px;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    color: #231E1C;
}

/* Главная страница */

.main-banner {
    background: url("../images/main-banner.jpg") top center no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    cursor: pointer;
}

@media (min-width: 320px) {

    .main-banner {
        height: 56.25vw;
    }

    .play {
        width: 40px;
        height: 40px;
        top: calc((56.25vw - 40px) / 2);
    }

}

@media (min-width: 480px) {

    .main-banner {
        height: 56.25vw;
    }

    .play {
        width: 60px;
        height: 60px;
        top: calc((56.25vw - 62px) / 2);
    }

}

@media (min-width: 800px) {

    .main-banner {
        height: 37.5vw;
    }

    .play {
        width: 60px;
        height: 60px;
        top: calc((37.5vw - 60px) / 2);
    }

}

@media (min-width: 1000px) {

    .main-banner {
        height: 37.5vw;
    }

    .play {
        width: 60px;
        height: 60px;
        top: calc((37.5vw - 60px) / 2);
    }

}

@media (min-width: 1280px) {

    .main-banner {
        height: 34vw;
    }

    .play {
        width: 60px;
        height: 60px;
        top: calc((34vw - 60px) / 2);
    }

}

.play {
    position: relative;
    left: calc((100% - 62px) / 2);
}

.columns1 {
    display: grid !important;
    gap: 40px !important;
    margin-bottom: 0;
}

.columns1 figure {
    margin: 0 !important;
}

.main-header {
    margin-top: 0 !important;
}

@media (min-width: 320px) {
    .main-header, .h1copy {
        padding-left: 0 !important;
    }

    .columns1 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .columns1 img {
        max-width: 280px;
    }

    .text3, .lekcii {
        margin-left: auto;
        margin-right: auto;
    }

    .text3 {
        width: auto;
        margin-top: 25px;
        margin-bottom: 30px;
    }

    .lekcii {
        width: auto;
    }

    .periods .period {
        display: none;
        margin-right: 0 !important;
    }

    .periods .period.active {
        display: block;
    }

    .period.active  {
        width: calc(100% - 20px) !important;
        min-height: auto !important;
        padding-left: 20px;
        padding-bottom: 20px;
    }

    .period.active p, .period.active h2 {
        width: calc(100% - 80px);
    }

    .period.active p:first-child {
        display: none !important;
    }

    .period.active h2 {
        font-size: 18px;
    }

    .lekcia h3, .lection-body h3 {
        font-size: 20px !important;
    }
}

@media (min-width: 480px) {

    .lekcia h3, .lection-body h3 {
        font-size: 24px !important;
    }

    .text3 {
        margin-bottom: 40px;
    }


}

@media (min-width: 800px) {

    .columns1 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }

    .columns1 img {
        max-width: 100%;
    }

    .columns1 div:last-child {
        display: flex !important;
        align-items: center !important;
    }

    .columns1 div:first-child {
        grid-column: 1/3 !important;
    }

    .text3, .lekcii {
        margin-left: auto;
        margin-right: auto;
    }

    .text3 {
        width: auto;
        margin-bottom: 50px;
    }

    .lekcii {
        width: auto;
    }

    .period.active  {
        width: auto !important;
        padding-left: 0;
    }

    .period.active p:first-child {
        display: block !important;
        font-size: 60px;
    }

}

@media (min-width: 1000px) {
    .h1copy {
        padding-left: 20px !important;
    }

    .columns1 {
        width: 607px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }

    .columns1 div:last-child {
        display: block !important;
    }

    .columns1 div:first-child {
        grid-column: 1/3 !important;
    }

    .text3, .lekcii {
        margin-left: auto;
        margin-right: auto;
    }

    .text3 {
        margin-top: 40px;
        width: 607px;
    }

    .lekcii {
        width: 607px;
    }

    .periods .period {
        display: block;
        margin-right: 20px !important;
    }

    .period.active  {
        width: 522px !important;
        min-height: 122px !important;
        padding-left: 0;
        padding-bottom: 0;
    }

    .period.active p, .period.active h2 {
        width: calc(522px - 80px);
    }

    .period.active p:first-child {
        font-size: 70px;
    }

    .period.active h2 {
        font-size: 24px;
    }

}

@media (min-width: 1280px) {
    .main-header {
        padding-left: 20px !important;
    }

    .columns1 {
        width: auto;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: 2fr 1fr 1fr !important;
        gap: 40px !important;
    }

    .columns1 div:last-child {
        display: block !important;
    }

    .columns1 div:first-child {
        grid-column: 1/1 !important;
    }

    .text3, .lekcii {
        margin-left: calc((100% - 40px) / 4);
        margin-right: calc((100% - 40px) / 4);
    }

    .text3 {
        margin-top: 20px;
        width: calc((100% - 20px) / 2);
    }
}

.text1, .text2 {
    margin: 0;
}

.text3 a {
    text-decoration: underline;
    color: #231E1C !important;
}

.text3 {
    position: relative;
    background: #BDA797;
    padding: 24px;
    border-radius: 4px;
}

.text3 p {
    color: #231E1C;
}

.text3 p:first-child {
    margin-top: 0 !important;
}

.text3 p:last-child {
    margin-bottom: 0 !important;
}

.period {
    width: 45px !important;
    height: 52px !important;
    float: left !important;
    background: #302B29 !important;
    border-radius: 4px !important;
    margin-bottom: 20px;
    cursor: pointer;
}

.lekcii {
    clear: both !important;
}

.period.active  {
    height: auto !important;
    padding-top: 10px;
}

.period.active p, .period.active h2 {
    display: block;
    float: left;
    margin: 0;
}

.period.active p:first-child {
    width: auto !important;
    height: auto !important;
    max-width: 80px !important;
    padding: 5px 15px 5px 15px;
    font-weight: 700;
    line-height: 80%;
    text-transform: uppercase;
    font-feature-settings: 'pnum' on, 'lnum' on, 'case' on, 'cpsp' on;
}

.period.active p:nth-child(2) {
    font-weight: 700;
    font-size: 14px;
    line-height: 130%;
    text-transform: uppercase;
    font-feature-settings: 'pnum' on, 'lnum' on, 'case' on, 'cpsp' on;
    color: #B9451C;
    margin-top: 10px;
}

.period.active h2 {
    font-weight: 700;
    line-height: 124%;
    margin-top: 5px;
    margin-bottom: 10px;
}

.period p:first-child {
    display: block;
    font-weight: 700;
    font-size: 40px;
    text-transform: uppercase;
    text-align: center;
    font-feature-settings: 'pnum' on, 'lnum' on, 'case' on, 'cpsp' on;
    color: #B9451C;
    margin: 0;
    padding: 0;
}

.period p, .period h2 {
    font-family: 'Alegreya Sans';
    display: none;
}

.lekcii {
    margin-bottom: 40px;
}

.lekcii .lekcia {
    border-bottom: #3D3631 solid 1px;
}

.lekcii .lekcia:last-child  {
    border-bottom: none;
}

.lekcia {
    margin-top: 20px;
    background: #231E1C;
}

.lekcia:hover * {
    color: #BDA797;
}

.lekcia p:first-child {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 130%;
    text-transform: uppercase;
    font-feature-settings: 'pnum' on, 'lnum' on, 'case' on, 'cpsp' on;
    margin: 0 !important;
}

.lekcia h3, .lection-body h3 {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400 !important;
    line-height: 124% !important;
    color: #BDA797;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.lekcia p:last-child {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 136%;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.up {
    position: fixed !important;
    right: 60px !important;
    bottom: 66px !important;
    cursor: pointer;
    z-index: 999999;
}

.mobile-nav {
    position: fixed !important;
    width: 100% !important;
    bottom: 0px !important;
    left: 0px !important;
    background: #302B29;
    border-radius: 4px;
    z-index: 999999;
}

.mobile-nav p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-title, .nav-period, .nav-separator, .nav-close {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 130%;
}

.nav-title {
    width: 100%;
    font-size: 14px;
    text-transform: uppercase;
    font-feature-settings: 'pnum' on, 'lnum' on, 'case' on, 'cpsp' on;
    color: #B9451C;
    padding-left: 20px;
    cursor: pointer;
}

.nav-period, .nav-close {
    color: #B9451C;
    text-align: center;
    cursor: pointer;
}

.nav-separator {
    color: #000;
    text-align: center;
}

.nav-periods {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr 1px 1fr;
    gap: 0;
    width: 100%;
}

@media (min-width: 320px) {

    .mobile-nav {
        display: block;
    }

    .nav-title {
        padding-left: 32px;
    }

}

@media (min-width: 800px) {

    .nav-title {
        padding-left: 60px;
    }

}

@media (min-width: 1000px) {
    .mobile-nav {
        display: none;
    }
}


/* Лекция */

.lection-header, .lection-navigation, .lection-body {
    display: grid;
    gap: 30px;
}

.lection-navigation {
    margin-top: 7px !important;
}



@media (min-width: 320px) {

    .lection-body {
        margin-top: 40px !important;
    }
}

@media (min-width: 1000px) {

    .lection-body {
        margin-top: 10px !important;
    }
}

@media (min-width: 1280px) {

    .lection-body {
        margin-top: 40px !important;
    }
}

iframe {
  width: 100%;
  height: 100%;
}

.lekcia.single {
    margin: 0;
}

.lekcia .lekcziya {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 124%;
    text-transform: uppercase;
    font-feature-settings: 'pnum' on, 'lnum' on, 'cpsp' on, 'case' on;
    color: #BDA797;
}

.lekcia .title {
    padding-left: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

@media (min-width: 320px) {
    .lection-header, .lection-navigation, .lection-body {
        grid-template-columns: 1fr;
    }
    .video-area {
        height: 55.625vw;
        margin-left: -15px;
        margin-right: -15px;
    }
    .lekcia.single {
        height: auto;
    }
    .arrows-mobile {
        display: block;
        margin-top: 10px;
    }
    .arrows-empty {
        display: none;
    }
    .arrows {
        display: none;
    }
    .lekcia .title {
        font-size: 24px !important;
    }
    .lekcia h3.subheader {
        font-size: 18px !important;
    }
    .lekcia .years {
        font-size: 24px;
    }
    .periods-rectangles{
        margin-top: 30px;
    }
    .materials-link {
        display: block;
        margin-top: 30px;
        font-size: 16px;
    }
    .lekcia .period-title p {
        font-size: 14px;
    }
    .period-title {
        height: 34px;
    }
    .tab, .tab a {
        font-size: 16px;
    }
}

@media (min-width: 480px) {
    .lekcia .title {
        font-size: 32px !important;
    }
    .lekcia h3.subheader {
        font-size: 20px !important;
    }
    .lekcia .years {
        font-size: 32px;
    }
    .lekcia .period-title p {
        font-size: 16px;
    }
    .period-title {
        height: 20px;
    }
}

@media (min-width: 800px) {
    .lection-header, .lection-navigation, .lection-body {
        margin-bottom: 20px;
    }
    .video-area {
        height: 47.375vw;
        margin-left: 0;
        margin-right: 0;
    }
    .lekcia .title {
        font-size: 32px !important;
    }
    .lekcia h3.subheader {
        font-size: 20px !important;
    }
    .lekcia .years {
        font-size: 32px;
    }
    .materials-link {
        font-size: 18px;
    }
    .tab, .tab a {
        font-size: 18px;
    }
}

@media (min-width: 1000px) {
    .lection-header, .lection-navigation, .lection-body {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 0;
    }
    .video-area {
        height: 24.9vw;
    }
    .lekcia.single {
        height: calc(24.9vw + 36px);
    }
    .arrows-empty {
        display: block;
    }
    .materials-link {
        display: none;
    }
    .lekcia.single {
        position: relative;
    }
    .lekcia .title {
        font-size: 32px !important;
    }
    .lekcia h3.subheader {
        font-size: 20px !important;
    }
    .lekcia .years {
        font-size: 32px;
    }
    .periods-rectangles{
        position: absolute;
        bottom: 30px;
        margin-top: 0;
    }
    .periods-titles {
        position: absolute;
        bottom: 0;
    }
}

@media (min-width: 1280px) {
    .video-area, .lekcia.single {
        height: 327px;
    }
    .arrows-mobile {
        display: none;
    }
    .arrows {
        display: block;
    }
    .arrows-empty {
        display: none;
    }
    .lekcia .title {
        font-size: 40px !important;
    }
    .lekcia h3.subheader {
        font-size: 24px !important;
    }
    .lekcia .years {
        font-size: 36px;
    }
}

.lekcia .years {
    font-family: 'Alegreya';
    font-style: italic;
    font-weight: 400;
    line-height: 100%;
    color: #FFFFFF;
}

.periods-rectangles{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3px;
    align-items: end;
}

.period-rectangle {
    border-top: #B9451C solid 8px;
    background: #231E1C;
}

.period-rectangle.active {
    border-top-width: 12px;
}

.periods-titles {
    width: 100%;
    margin-top: 0;
}

.period-title {
    display: none;
    background: #231E1C;
    margin: 0;
    width: 100%;
    padding-top: 10px;
}

.lekcia .period-title p {
    margin: 0 !important;
    text-transform: none !important;
    font-feature-settings: normal !important;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    color: #FFFFFF;
    float: bottom;
}

.period-title.active {
    display: block;
}

.arrow, .arrow * {
    font-family: 'Spectral';
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    color: #FFFFFF;
}

.arrow {
    color: #574A45;
}

.arrow * {
    color: #FFFFFF;
}

.arrow.prev {
    float: left;
}

.arrow.prev img {
    margin-right: 7px;
}

.arrow.next {
    float: right;
}

.arrow.next img {
    margin-left: 7px;
}
.post-content .arrow {
  float: none;
}

.share {
    clear: both;
}

.share-btn {
    float: right;
    margin-left: 20px;
}

.share-simple {
    cursor: pointer;
}

.materials-link {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    line-height: 124%;
    text-decoration-line: underline;
    color: #BDA797;
}

.lection-body {
    clear: both;
}

.column1, .column2 {
    overflow: hidden;
}

.tabs {
    gap: 0 !important;
}

.tab {
    width: 133px;
    height: 32px;
    background: #231E1C;
    border: 2px #BDA797 solid;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    color: #BDA797;
    margin: 0;
    cursor: pointer;
}

.tab a {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    color: #BDA797;
}

.tab.active {
    background: #BDA797;
    color: #231E1C;
}

.tab.active a {
    color: #231E1C;
}

#info {
    float: left;
    border-radius: 2px 0 0 2px;
}

#materials {
    clear: both;
    border-radius: 0 2px 2px 0;
}

.hidden {
    display: none !important;
}

.tab-content p, .tab-content li {
    line-height: 148% !important;
}

.info-img {
    width: 18px;
    height: 18px;
}

span.toggle {
    color: #BDA797 !important;
    cursor: pointer;
}

span.toggle:hover {
    text-decoration: underline;
}

.ui-dialog {
    background: #BDA797 !important;
    border-radius: 4px !important;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #231E1C;
    padding: 0 20px 20px 20px;
}

.ui-dialog a {
    color: #231E1C;
    text-decoration: underline;
}

.ui-button {
    float: right;
    background: none;
    border: none;
    padding: 0;
    margin: 7px;
    cursor: pointer;
}

.ui-icon-closethick {
    width: 12px;
    height: 12px;
    content: url("/wp-content/themes/lekcii_petrova/images/close.svg");
    margin: 5px -20px 5px 5px;
    padding: 0;
}

.dialog {
    clear: both;
}

.material-sections {
    padding-left: 30px;
    border-left: #3D3631 1px solid;
}

@media (min-width: 320px) {

    .material-sections {
        padding-left: 0;
        border-left: none;
    }

    .conspect-mobile {
        display: block;
    }

    .conspect {
        display: none;
    }
}

@media (min-width: 1000px) {

    .material-sections {
        padding-left: 30px;
        border-left: #3D3631 1px solid;
    }

    .conspect {
        display: block;
    }

    .conspect-mobile {
        display: none;
    }
}

.material-section {
    margin-top: 30px;
}

.material-section h3 {
    margin: 0 !important;
}

.material {
    margin: 10px 0 0 10px;
}

.material:hover {
    text-decoration: underline;
}

.conspect {
    margin-top: 50px;
    margin-left: 30px;
    background: #FFFFFF;
    border-radius: 2px;
    border: none;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #000000;
    padding: 20px 50px 20px 50px;
    cursor: pointer;
}

.conspect-mobile {
    margin-top: 50px;
    margin-bottom: 20px;
    background: #FFFFFF;
    border-radius: 2px;
    border: none;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #000000;
    padding: 16px 40px 16px 40px;
    cursor: pointer;
}

.conspect:hover, .conspect-mobile:hover {
    background: #BDA797;
}

#copy-dialog {
    display:none;
    background: #FFFFFF;
    border-radius: 2px;
    border: none;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 29px;
    color: #000000;
    padding: 5px 30px 5px 30px;
    position: absolute;
    height: auto;
    width: auto;
    /*left: 64%;
    top: 440px*/
}


@media (min-width: 1000px) {

    .fotorama__stage .fotorama__caption {
        display: none;
    }

    .fotorama__stage:hover .fotorama__caption {
        display: block;
    }

}

.fotorama__nav__shaft {
    float: left;
}

.fotorama__nav-wrap {
    background: #1C1716;
}

.fotorama__active {
    border: #1C1716 1px solid;
}

/*.fotorama {
    width: calc((1200px - 30px) / 2);
}*/

/*.gallery-navigation {
    display: grid;
    width: 100%;
    grid-gap: 0;
}

.gallery-navigation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    margin-top: -5px;
}

.gallery-show img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}*/

/* Словарь */

.widthauto {
    width: auto !important;
    height: auto !important;
    padding: 6px 32px 4px 32px !important;
}

#ref52, #ref176 {
    float: left;
    border-radius: 2px 0 0 2px;
}

#ref169, #ref163 {
    float: left;
    border-left-width: 0;
    border-right-width: 0;
}

#ref169.active, #ref163.active {
    float: left;
    border-left-width: 2px;
    border-right-width: 2px;
}

#ref165, #ref172 {
    clear: left;
    border-radius: 0 2px 2px 0;
}

.tabs.additional {
    margin-top: 48px;
    margin-bottom: 30px;
}

.tabs.additional .tab {
    border-width: 0 0 1px 0 !important;
    background: none !important;
    padding: 11px 40px 11px 40px !important;
}

.tabs.additional .tab.active .tab-text {
    border-width: 0 0 2px 0 !important;
    border-color: #BDA797 !important;
    border-style: solid !important;
}

.tabs.additional .tab.active .tab-text{
    padding-bottom: 9px !important;
}

.tabs.additional .tab.active {
    padding-bottom: 0 !important;
}

.tabs.additional .tab-text {
    color: #FFF !important;
}

.reference-title {
    padding-left: 0 !important;
}

@media (min-width: 320px) {

    .reference-title {
        margin-top: -20px !important;
    }

}

@media (min-width: 480px) {

    .reference-title {
        margin-top: -30px !important;
    }

}

.periods-area {
    max-width: 600px;
}

.periods-area * {
    position: relative !important;
    bottom: 0 !important;
}

.periods-area .period-title p {
    margin: 0;
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
}

.reference-area, .materials-title, .post-content, .search-area {
    max-width: 585px;
}

.materials-title {
    margin-top: 48px;
    margin-bottom: 30px;
}

.materialy-lectures {
    margin-top: 50px;
}

.lecture-title, .leacture-materials {
    clear: both;
}

.lecture-title {
    margin-bottom: 20px;
    overflow: auto;
}
.materialy-lectures .lecture-title {
    float: none;
}

.lecture-title p {
    font-family: 'Alegreya Sans' !important;
     font-style: normal !important;
    display: block !important;
    margin: 0;
    /*max-width: 650px;*/
}

.lecture-title > p {
    width: auto !important;
    height: auto !important;
    max-width: 80px !important;
    padding: 5px 15px 5px 0px;
    font-size: 54px;
    font-weight: 700;
    line-height: 80%;
    text-transform: uppercase;
    font-feature-settings: 'pnum' on, 'lnum' on, 'case' on, 'cpsp' on;
    color: #B9451C;
    float: left;
}

.lecture-title-text {
    float: left;
}

.lecture-title-text p:first-child {
    clear: both;
    width: 100%;
    font-weight: 700;
    font-size: 18px;
    line-height: 124%;
    margin-top: 5px !important;
}

.lecture-title-text p:last-child {
    width: 100%;
    font-weight: 700;
    font-size: 18px;
    line-height: 124%;
}

.lecture-materials {
    clear: both;
    overflow: visible;
    margin-bottom: 15px;
}

.lecture-materials figure{
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    max-width: 585px;
}

.lecture-materials figcaption{
    margin-top: 8px;
}

.lecture-materials img{
    object-fit: contain;
    object-position: top;
}

@media (min-width: 320px) {
    .lecture-materials figure{
        width: 100%;
    }
    .lecture-materials img{
        width: 100%;
    }
    .lecture-materials figcaption{
        display: block;
        margin-left: 15px;
        margin-right: 15px;
    }
    .col-xs-6 {
        float: none;
        margin-bottom: 16px;
        margin-left: -15px;
        margin-right: -15px;
    }
    .lecture-img.vertical img {
        max-height: 60vw !important;
        max-width: calc(585px / 2);
        object-position: left !important;
    }
}

@media (min-width: 480px) {
    .lecture-materials figure{
        width: 100%;
    }
    .lecture-materials img{
        width: 100%;
    }
    .lecture-materials figcaption{
        display: block;
        margin-left: 0;
        margin-right: 0;
    }
    .col-xs-6 {
        float: none;
        margin-bottom: 16px;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 800px) {
    .lecture-materials figure{
        width: auto;
        max-width: 180px;
        height: 118px;
    }
    .lecture-materials img{
        width: auto;
        max-width: 180px;
        height: 118px;
    }
    .lecture-materials figcaption{
        display: none;
        margin-left: 0;
        margin-right: 0;
    }
    .col-xs-6 {
        float: left;
        margin-right: 25px;
        margin-bottom: 25px;
        margin-left: 0;
    }
    .lecture-img {
        cursor: pointer;
    }
}

.ref-terms {
    margin: 10px 0 20px 0;
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 136%;
    color: #FFFFFF;
}

.ref-terms h3 {
    margin: 0;
    font-size: 18px;
    color: #BDA797;
    display: unset;
}

.ref-terms.document h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF !important;
    display: unset;
}

.ref-terms.document h3:hover {
    text-decoration: underline;
}

p.text-block {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 136%;
    color: #231E1C;
}

.text-istochniki {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.tabs-reference.main.mobile {
    height: 36px;
}

.tabs-reference.additional.mobile {
    height: 44px;
    background: #1C1716;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 20px !important;
}

.tabs-reference.main.mobile {
    height: 36px;
    margin-top: 10px !important;
    margin-right: -15px;
}

.tabs-reference.mobile {
    margin-left: -15px;
    margin-right: -15px;
}

@media (min-width: 320px) {

    .tabs-reference.desktop {
        display: none !important;
    }

    .tabs-reference.mobile {
        display: block !important;
    }
}

@media (min-width: 640px) {

    .tabs-reference.desktop {
        display: block !important;
    }

    .tabs-reference.mobile {
        display: none !important;
    }
}

.tabs-reference.mobile.main .slick-slide {
    transform: translate3d(15px, 0, 0);
}

.tabs-reference.mobile.tabs.additional .tab {
    border-bottom: none !important;
}

.slick-track {
    width: 20000px !important;
}

.param {
  font-size: small;
}
.param b {
  color: #BDA797;
}
/* TO-DO часто max-width: 100%; прописывается всем img {} */
.wp-post-image {
  max-width: 100%;
}

h2.title {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 124%;
    color: #FFFFFF;
    margin-bottom: 8px;
}

@media (min-width: 320px) {

    h2.title {
        margin-top: 25px;
    }
}

@media (min-width: 480px) {

    h2.title {
        margin-top: 35px;
    }
}

@media (min-width: 800px) {

    h2.title {
        margin-top: 45px;
    }
}

/*.search-term {
    font-weight: 700;
    color: #633636;
}*/

.reference-area h3.dop-h3 {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    line-height: 124%;
}

h3.dop-h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

p.dop-p {
    margin-top: 5px;
    margin-bottom: 20px;
}

.post-content figure {
    max-width: 585px;
}

.post-content .param {
    font-family: 'Spectral';
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

.post-content .param b {
    font-weight: 400;
    color: #FFFFFF;
}

.post-content .arrow a {
    color: #BDA797;
}


/* Модальное окно для просмотра фото в материалах к лекциям*/

.modalimage .gallery,
.modalimage .gallery .slick-list,
.modalimage .gallery .slick-track,
.modalimage .gallery .item {
    height: 100vh;
}

.modalimage .modal-img {
    object-fit: contain;
    padding: 0;
    margin: auto auto;
    width: auto;
    height: 95vh;
    image-rendering: -moz-crisp-edges; /* Firefox */
    -ms-interpolation-mode: nearest-neighbor;  /* IE */
    image-rendering: crisp-edges;
}

.modalimage .modal-body {
    width: calc(100% - 60px);
    height: calc(100% - 60px);
    margin: -10px 20px 20px 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.modalimage .modal-header {
    padding-top: 10px;
    padding-right: 5px;
}

.modalimage {
    position: fixed; /* фиксированное положение */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5); /* цвет фона */
    z-index: 1050;
    opacity: 0; /* по умолчанию модальное окно прозрачно */
    -webkit-transition: opacity 200ms ease-in;
    -moz-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in; /* анимация перехода */
    pointer-events: none; /* элемент невидим для событий мыши */
    margin: 0;
    padding: 0;
}

/* при отображении модального окно */
.modalimage:target {
    opacity: 1; /* делаем окно видимым */
    pointer-events: auto; /* элемент видим для событий мыши */
}

/* ширина модального окна и его отступы от экрана */
.modalimage .modal-dialog {
    position: relative;
    width: 100%;
}

/* свойства для блока, содержащего контент модального окна */
.modalimage .modal-content {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #B9451C;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    /*border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;*/
    outline: 0;
}

/* свойства для заголовка модального окна */
.modalimage .modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.modalimage .modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

/* свойства для кнопки "Закрыть" */
.gallery {
    margin-right: 5px;
}
.modalimage .close {
    float: right;
    margin-right: 10px;
}

/* свойства для блока, содержащего основное содержимое окна */
.modalimage .modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 0;
    overflow: auto;
}

.modalimage .close {
    cursor: pointer;
}

.modal-body .item {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

.modalimage figure {
    display: table;
    background: #231E1C;
    margin: auto;
}

.modalimage figcaption {
    display: table-caption;
    caption-side: bottom ;
    background: #231E1C;
    padding: 14px 16px 20px 16px;
}

.modalimage img {
    max-height: 60vh;
    max-width: 80vw;
}

/* Страница поиска */

.search-title {
    padding-left: 0 !important;
}

.search-area h2 {
    font-family: 'Alegreya Sans';
    font-style: normal;
    font-weight: 700;
    line-height: 124%;
    color: #FFFFFF;
}

.search-area h3, .search-area h3 * {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    line-height: 124%;
    color: #BDA797;
}

@media (min-width: 320px) {
    h2.title, .search-area h2 {
        font-size: 24px;
    }
    h3.dop-h3, .search-area h3 {
        font-size: 24px;
    }
}

@media (min-width: 1000px) {
    h2.title, .search-area h2 {
        font-size: 30px;
    }
}

.search-area .search-term {
    color: #BDA797;
}

.search-item {
    border-bottom: 1px #FFFFFF solid;
}

.search-item:hover * {
    color: #BDA797;
}

a:last-of-type .search-item {
    border-bottom: none;
}

.search-area p {
    word-wrap: break-word;
}
