::-moz-selection {
  background: #3A3434;
  color: #ffffff;
}

::selection {
  background: #3A3434;
  color: #ffffff;
}
@font-face {
    font-family: 'Lavka 2021';
    src: url('../fonts/Lavka 2021.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: auto;
    width: 100%;
    background-color: #433b3b !important;
}
h1{
    font-family: 'Cormorant Unicase', serif; 
    color: #3A3434;
}
a {
    text-decoration: none;
    color: inherit;
}
a:hover{
    text-decoration: underline;
}
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}
p{
    line-height: 1.7;
    margin-top: 0px;
}
p a{
    color: #736A6A;
    text-decoration: underline;
}
p img{
    width: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
p img::before {
    content: '';
    position: absolute;
    width: calc(100% - 15px);
    height: calc(100% - 15px);
    border: 1px solid #3a3434;
    pointer-events: none;
}
blockquote {
    background-color: #3a34341e;
    margin: 0;
    line-height: 1.5;
    padding-top: 5px;
    padding-left: 30px;
    padding-bottom: 5px;
    padding-right: 50px;
    position: relative;
    margin-bottom: 20px;
}
blockquote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #3a3434;
}

.article-content blockquote:not(:has(+ blockquote)) {
    margin-bottom: 20px;
}

.article-content blockquote {
    margin-bottom: 0;
}
blockquote:not(blockquote + blockquote)::after {
    content: "“";
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 48px;
    font-family: serif;
    color: #3a343466;
    line-height: 1;
    margin-bottom: 0px;
}
.article-page-image{
    position: absolute;
    left: 20px;
    width: 30px;
    height: 100%;
    transform: rotate(90deg);
    background-repeat: repeat;  
    background-size: cover;
}
.article-page{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
} 
.container{
    position: relative;
    width: 980px;
    background-color: #E3DAD2;
    padding: 0 55px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}
.container::before {
    align-self: center; 
    content: '';
    position: absolute;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 1px solid #3a3434;
    pointer-events: none;
}
.article-title{
    font-size: 52px;
    font-family: 'Cormorant Unicase', serif; 
    font-weight: 400;
    position: relative;
    text-transform: uppercase;
    color: #3a3434;
    margin-top: 35px;
    margin-bottom: 20px;
}
.article-line{
    width: 100%;
    height: 1px;
    background-color: #3a3434;
    margin: 15px 0px;
}
.article-meta{
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #343434;
    text-transform: uppercase;
    font-weight: 500;
    justify-content: space-between;
}
.article-author a{
    text-align: center;
}
.diamond{
    width: 10px;
    height: 10px;
    background-color: #3A3434;
    transform: rotate(45deg);
}

.article-annotation, blockquote, .article-tags{
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #000000;
}
.article-annotation{
    font-style: italic;
    color: #3a3434;
}
.article-tags{
    text-align: justify;
}
p{
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}
.article-tags{
    text-align: center;
    width: 100%;
    color: #786F6E;
    text-decoration: none !important;
}
.tag{
    text-decoration: underline;
    margin: 5px;
}
.article-image{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}
.article-image::after {
    content: '';
    position: absolute;
    width: calc(100% - 15px);
    height: calc(100% - 15px);
    border-radius: 10px;
    border: 1px solid #E3DAD2;
    pointer-events: none;
}
.article-image img{
    width: 100%;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
    user-select: none;
    transition: transform 0.3s ease;
}
.article-image img:hover {
  transform: scale(1.02);
}
.footer-article-telegram{
    position: relative;
    width: 50px;
    height: 50px;
    margin: 20px auto;
    margin-bottom: 40px;
}
.telegram-image,.footer-telegram-link{
    width: 100%;
    height: 100%;
    color: #E3DAD2;
}
.footer-telegram-link{
    display: block;
    position: absolute;
    top: 0;
}

.image {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    background-size: 40%;
    background-position: center;
    background-origin: content-box;
    background-clip: content-box;
    z-index: 0;
    background-image: url("/static/public/images/фоновый псевд 2.svg");
}
.footnote-popup p{
    color: rgb(227, 218, 210);
    font-size: 16px;
    font-weight: 400;
    font-family: "Playfair Display", serif;
    margin-bottom: 0;
}
.footnote-popup p a{
    color: rgb(227, 218, 210);
    font-size: 16px;
    font-weight: 400;
    font-family: "Playfair Display", serif;
}
.centered-image {
    max-width: 80%;
    width: 350px;
    margin: 50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.mobile-info, .telegram, .mobilemenu-img{
    display: none;
}
.footnote-reference {
    /*background-color: #3a3434;*/
    color: #3a3434;
    border-radius: 3px;
    vertical-align: super;
    font-size: 80%;
    padding: 1px 2px;
    cursor: pointer;
}
.footnote-popup {
    position: absolute;
    background-color: #3a3434;
    border: 1px solid #786f6e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    padding: 10px;
    z-index: 1000;
    max-width: 300px;
    color: #e3dad2;
    font-size: 16px;
    font-weight: 400;
    font-family: "Playfair Display", serif;
}
@media screen and (max-width: 1400px) and (orientation: landscape){
    .container{
        width: 750px;
    }
    .article-title{
        font-size: 40px;
    }
    .article-image img{
        height: 400px;
    }
    .article-annotation, blockquote, .article-tags{
        font-size: 16px;
    }
    p{
        font-size: 16px;
    }
    .centered-image {
        width: 250px;
        margin: 30px;
        margin-left: auto;
        margin-right: auto;
    }
    .article-meta{
        font-size: 18px;
    }
}
@media screen and (min-width: 1024px) and (orientation: portrait){ 
    body {
        background-color: #e3dad2 !important;
    }
    .mobilemenu{
        display: block;
        width: 100%;
        height: 130px;
        background-color: #3A3434;
        display: flex;
        justify-content: center;
    }
    .article-page{
        width: 100%;
    }
    .container{
        width: 100%;
        padding: 0 30px;
    }
    .container::before {
        content: none;
    }
    .article-title{
        font-size: 3rem;
        text-align: center;
        font-weight: 600;
        margin-top: 20px;
    }
    .article-image img{
        height: 450px;
    }
    .diamond, .image{
        display: none;
    }
    .article-line {
        margin: 10px 0px;
    }
    .article-meta{
        font-size: 14px;
        font-weight: 700;
    }
    .article-annotation, p, blockquote, .article-tags{
        font-size: 2rem;
    }
    .centered-image{
        width: 500px;
        margin: 30px auto;
    }
    .mobile-info{
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    .info-item{
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        color: #3A3434;
        height: 50px;
        border-radius: 10px;
        border: 1px solid #3a3434;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px 30px;
        text-align: center;
        white-space: nowrap;
    }
    .telegram{
        width: 300px;
        margin: 30px 0px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .info-item-telegram-link{
        width: 100%;
    }
    .article-category a{
        text-decoration: none;
    }
    .article-category-m, .article-author-m{
        text-transform: uppercase;
    }
    .article-tags, .footer-article-telegram,.article-category,.article-author,.article-line{
        display: none;
    }
    .article-meta{
        justify-content: center;
    }
    .article-date{
        display: flex;
        width: 200px;
        height: 50px;
        border-radius: 10px;
        border: 1px solid #3A3434;
        justify-content: center;
        align-items: center;
        margin: 10px 0px;
        font-size: 1.5rem;
        font-family: 'Cormorant Unicase', serif; 
    }
    .mobilemenu-img{
        display: block;
        width: 50%;
    }
    .scroll-to-top{
        background-color: #3a3434 !important;
    }
    .scroll-to-top::after {
        border-top: 2px solid #E3DAD2 !important;
        border-right: 2px solid #E3DAD2 !important;
    }
}
@media (max-width: 1024px) {
    p, .article-annotation, blockquote, .article-tags{
        line-height: 1.4;
    }
    .mobilemenu{
        display: block;
        width: 100%;
        height: 80px;
        background-color: #3A3434;
        display: flex;
        justify-content: center;
    }
    .menu-button-fixed{
        z-index: 1000;
        background-color: transparent;
        position: absolute !important;
        top: 15px !important;
        height: 50px;
        width: 50px;
    }
    .search-button-fixed{
        background-color: transparent;
        position: absolute !important;
        z-index: 1000;
        height: 50px;
        width: 50px;
        top: 15px !important;
        right: 20px !important;
        left: auto !important;
    }
    .article-page{
        width: 100%;
    }
    .container{
        width: 100%;
        padding: 0 30px;
    }
    .container::before {
        content: none;
    }
    .article-title{
        font-size: 35px;
        text-align: center;
        font-weight: 600;
        margin-top: 20px;
    }
    .article-image img{
        height: 350px;
    }
    .diamond, .image{
        display: none;
    }
    .article-line {
        margin: 10px 0px;
    }
    .article-meta{
        font-size: 14px;
        font-weight: 700;
    }
    .article-annotation, p, blockquote, .article-tags{
        font-size: 16px;
    }
    .centered-image{
        width: 300px;
    }
    .mobile-info{
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    .info-item{
        font-family: 'Playfair Display', serif;
        font-size: 14px;
        color: #3A3434;
        height: 30px;
        border-radius: 10px;
        border: 1px solid #3a3434;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px 30px;
        text-align: center;
        white-space: nowrap;
    }
    .telegram{
        width: 200px;
        margin: 30px 0px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .info-item-telegram-link{
        width: 100%;
    }
    .article-category a{
        text-decoration: none;
    }
    .article-category-m, .article-author-m{
        text-transform: uppercase;
    }
    .article-tags, .footer-article-telegram,.article-category,.article-author,.article-line{
        display: none;
    }
    .article-meta{
        justify-content: center;
    }
    .article-date{
        display: flex;
        width: 150px;
        height: 30px;
        font-size: 18px;
        border-radius: 10px;
        border: 1px solid #3A3434;
        justify-content: center;
        align-items: center;
        margin: 10px 0px;
        font-family: 'Cormorant Unicase', serif; 
    }
    .mobilemenu-img{
        display: block;
        width: 50%;
    }
    .scroll-to-top{
        background-color: #3a3434 !important;
    }
    .scroll-to-top::after {
        border-top: 2px solid #E3DAD2 !important;
        border-right: 2px solid #E3DAD2 !important;
    }
}
@media (max-width: 768px) {
    .mobilemenu-img{
        width: 50%;
    }
    .article-image img{
        height: 250px;
    }
    .article-title{
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .mobilemenu-img{
        width: 50%;
    }
}

@media (max-width: 480px) {

}