* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Lavka 2021';
    src: url('../fonts/Lavka 2021.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
::-moz-selection {
  background: #3A3434;
  color: #ffffff;
}

::selection {
  background: #3A3434;
  color: #ffffff;
}
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    scroll-behavior: smooth;
}
body {
    color: #333;
    overflow-x: hidden;
    -ms-overflow-style: none;
    overflow-x: hidden;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Модальное окно: Заявка на авторство */
.author-apply-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.author-apply-form {
    font-family: 'Playfair Display', serif;
    background-color: #e3dad2;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.close-btn:hover {
    color: #555;
}

.author-apply-form h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 30px;
    color: #3a3434;
}

.author-apply-form p {
    line-height: 1.6;
    color: #3a3434;
}

.btn-submit {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 16px;
    height: 50px;
    width: 300px;
    background-color: #E3DAD2;
    outline: 1px solid #3A3434;
    color: #3A3434;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-submit:hover {
    outline: 1px dashed #3a3434;
    background: #3a343415;
}
.search-button-fixed{
    position: absolute !important;
    right: 15px !important;
    top: 10px !important;
    left: auto !important;
}
.menu-button-fixed{
    display: none !important;
}
.page_header{
    width: 100%;
    height: 70px;
    background-color: #3A3434;
}
.header-icon{
    position: absolute;
    left: 15px;
    top: 10px;
}
.header-search-icon {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}
.icon_logo, .icon_search{
    width: 30px;
    margin: auto;
}
.header-icon, .header-search-icon {
    display: flex;
    outline: 2px solid #E3DAD2;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    MARGIN: 0 auto;
    justify-content: center;
    align-items: center;
}
.search_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.header_link_block{
    width: 50%;
    height: 100%;
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}
.header_btn{
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    display: flex;
    color: #E3DAD2;
    justify-content: center;
    align-items: center;
    transition: all 0.1s ease;
    padding: 15px;
    height: 50%;
    text-align: center;
}
.header_btn:hover{
    transform: scale(1.03);
}
.telegram-main{
    position: absolute;
    top: 8px;
    right: 80px;
    width: 54px;
    height: 54px;
}
.fullpage-block {
    width: 100vw;
    height: 75vh;  /* Тут можно редактировать высоту первого блока */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.hero-block::before{
    align-self: center; 
    content: '';
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 1px solid #3a3434;
    pointer-events: none;
}
.hero-block {
    background-color: #E3DAD2;
    position: relative;
    background-size: cover;
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.logoimage {
    position: absolute;
    top: 7%;
    width: 100px;
}
.corner-image {
    position: absolute !important;
    width: 80px !important;
    height: auto !important;
    z-index: 1 !important;
}

.top-left {
    top: 20px !important;
    left: 20px !important;
    transform: rotate(0deg);
}

.top-right {
    top: 20px !important;
    right: 20px !important;
    transform: rotate(90deg);
}

.bottom-left {
    bottom: 20px !important;
    left: 20px !important;
    transform: rotate(270deg);
}

.bottom-right {
    bottom: 20px !important;
    right: 20px !important;
    transform: rotate(180deg);
}
header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
}

nav a {
    margin-left: 2rem;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column; /* Добавляем колоночное направление */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: #3A3434;
    font-size: 200px;
    font-family: 'Lavka 2021', serif;
    font-weight: 200;
    margin: 0 60px;
    position: relative;
    padding: 0 80px;
}

.hero-content h1::before,
.hero-content h1::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #3A3434;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hero-content h1::before {
    left: 0;
}

.hero-content h1::after {
    right: 0;
}

.hero-block p {
    color: #3A3434;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    position: absolute;
    bottom: 13%;
}

.centered-image {
    max-width: 80%;
    z-index: 1;
}

.top-image {
    width: 450px;
    margin-bottom: 20px;
}

.bottom-image {
    width: 450px;
    margin: 20px 0px;
}

.content-block, .general_text-block{
    background-color: #3A3434;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 700px;
    position: relative;
    box-sizing: border-box;
}
.content-block h2,  .general_text-block  h2{
    font-size: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 1.2px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #E3DAD2;
    width: 100%;
    max-width: 1600px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
}

.content-block h2 .diamond-left, 
.content-block h2 .diamond-right {
    position: relative;
    width: 8px;
    height: 8px;
    background: #E3DAD2;
    transform: rotate(45deg);
}

.content-block h2 .diamond-left {
    left: -20px;
}

.content-block h2 .diamond-right {
    right: -20px;
}
.content-block h2::before,
.content-block h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #E3DAD2; 
    margin: 0 20px;
    position: relative;
}
.general_text-block h2 .diamond-left, 
.general_text-block h2 .diamond-right {
    position: relative;
    width: 8px;
    height: 8px;
    background: #E3DAD2;
    transform: rotate(45deg);
}

.general_text-block h2 .diamond-left {
    left: -20px;
}

.general_text-block h2 .diamond-right {
    right: -20px;
}
.general_text-block h2::before,
.general_text-block h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #E3DAD2; 
    margin: 0 20px;
    position: relative;
}
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: 0px 100px;
}

/*.slider {
    display: flex;
    width: 100%;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    padding: 10px 0; 
    justify-content: center;
}*/
.slider{
    width: 100%;
    height: 100%;
    gap: 35px;
    box-sizing: border-box;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: auto;
    scrollbar-color: #E3DAD2 #3a3434 ;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 0px;
    justify-content: flex-start;
}
.centered{
    justify-content: center;
}
.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    width: 300px;
    flex-basis: 300px;
    flex-shrink: 0;
    height: 500px;
    background: #747474;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}
.slide:hover {
    transform: translateY(-10px);
}
.slide::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid #E3DAD2;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.article-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.slide-content {
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #E3DAD2;
    box-sizing: border-box;
}

.slide-content h3 {
    width: 90%;
    font-size: 18px;
    /* letter-spacing: 2px;*/
    background-color: #343434;
    color: #E3DAD2;
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    word-wrap: break-word;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    opacity: 0.8;
    border: 1px solid #ddd;
}
.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-prev {
    left: 20px;
}
.slider-prev::after {
    content: "";
    width: 15px;
    height: 15px;
    border-top: 2px solid #3a3434;
    border-right: 2px solid #3a3434;
    transform: rotate(-135deg);
    margin-left: 8px;
}
.slider-next {
    right: 20px;
}
.open_last{
    display: none;
}
.slider-next::after {
    content: "";
    width: 15px;
    height: 15px;
    border-top: 2px solid #3a3434;
    border-right: 2px solid #3a3434;
    transform: rotate(45deg);
    margin-right: 8px;
}
.about-block {
    background: #E3DAD2;
    height: 650px;
    display: flex;
    align-content: center;
    flex-direction: row;
    padding: 30px 50px;
}

.left-block {
    position: relative;
    width: 65%;
    padding: 40px;
    box-sizing: border-box;
    background-color: #E3DAD2;
    justify-content: center;
    display: grid;
    align-items: center;
    align-content: space-around;
    justify-items: center;
    padding-bottom: 70px;
}
.left-block::before {
    align-self: center; 
    content: '';
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 1px solid #3a3434;
    pointer-events: none;
    border-radius: 15px;
}
.left-block h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #3a3434;
    text-align: center;
    font-family: 'Playfair Display', serif;
}
.left-block p {
    font-size:16.5px;
    text-indent: 35px;
    line-height: 1.6;
    color: #3a3434;
    padding: 0px 20px;
    text-align: justify;
    font-family: 'Playfair Display', serif;
}

.right-block {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    background-color: #E3DAD2;
}
        
.button {
    width: 100%;
    min-width: 150px;
    height: 100px;
    background: transparent;
    border: 1px solid #3a3434;
    border-radius: 15px;
    color: #E3DAD2;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-about{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-evenly;
    align-items: center;
    color: #3a3434;
}
.button:hover {
    border: 1px dashed #3a3434;
    background: #3a343415;
}
.diamond {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #3A3434;
    transform: rotate(45deg);
    z-index: 2;
}

.diamond-tl { top: 30px; left: 30px; }
.diamond-tr { top: 30px; right: 30px; }
.diamond-bl { bottom: 30px; left: 30px; }
.diamond-br { bottom: 30px; right: 30px; }
@media screen and (max-width: 1900px) and (orientation: landscape){
    .hero-content h1{
        font-size: 180px;
        padding: 0 50px;
    }
    .centered-image{
        width: 350px;
    }
    .hero-block p{
        font-size: 18px;
        bottom: 9%;
    }
    .bottom-image, .top-image{
        margin: 0;
    }
    .about-block{
        padding: 30px 30px;
    }
    .left-block{
        width: 75%;
    }
    .right-block{
        width: 25%;
    }
    .left-block p{
        font-size: 16.5px;
        padding: 0;
    }
    .content-block h2, .general_text-block h2{
        font-size: 18px;
    }
    .logoimage{
        top: 4%;
    }
}
@media screen and (max-width: 1400px) and (orientation: landscape){
    .hero-content h1{
        font-size: 120px;
    }
    .content-block, .general_text-block{
        height: 600px;
    }
    .slider-container{
        padding: 0px 50px;
    }

    .slide{
        width: 250px;
        flex-basis: 250px;
        height: 380px;
    }
    .left-block h1{
        font-size: 22px;
    }
    .left-block p {
        font-size: 16px;
        padding: 0;
    }
    .button{
        font-size: 18px;
    }
    .header_btn{
        font-size: 17px;
    }
    .corner-image{
        width: 60px !important;
    }
}
@media screen and (min-width: 1024px) and (orientation: portrait){
    .hero-content{
        height: 80%;
        justify-content: flex-end;
    }
    .hero-content h1 {
        font-size: 12rem;
        padding: 0 50px;
    }
    .side-title {
        min-width: 120px;
        font-size: 16px;
    }
    .top-image {
        display: none;
    }
    .bottom-image{
        margin: 0px;
        width: 450px;
    }
    .divider-line {
        width: 400px;
    }
    .divider-diamond.left{
        left: 155px;
    }
    .divider-diamond.right {
        right: 155px;
    }
    .hero-block p {
        font-size: 2rem;
        bottom: 5%;
    }
    .corner-image {
        display: none;
    }
    .slide {
        flex: 0 0 calc(50% - 16px);
        height: 500px;
    }
    .about-block{
        flex-direction: column;
        align-items: center;
        padding: 0;
        height: 100%;
    }
    .left-block,.right-block{
        width: 98%;
    }
    .left-block h1{
        font-size: 2.5rem;
    }
    .left-block p{
        font-size: 2rem;
        padding: 0;
    }
    .button{
        height: 120px;
        margin-bottom: 20px;
        font-size: 2.5rem;
        border: 2px solid #3a3434;
    }
    .diamond{
        width: 15px;
        height: 15px;
    }
    .about-content p {
        font-size: 1.3rem;
    }
    .logoimage{
        width: 900px;
    }
    .fullpage-block {
        height: 60vh;
    }
    .content-block{
        height: 700px;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 130px;
        margin: 0 30px;
        padding: 0 40px;
    }
    .content-block h2, .general_text-block h2{
        font-size: 20px;
    }
    .content-block{
        height: 500px;
    }
    .general_text-block{
        height: auto;
    }
    .side-title {
        min-width: 150px;
        font-size: 18px;
    }
    .hero-block p{
        font-size: 20px;
    }
    .fullpage-block{
        height: 70vh;
    }
    .divider-line {
        width: 500px;
    }
    .divider-diamond.left{
        left: 120px;
    }
    .divider-diamond.right {
        right: 120px;
    }
    .slide {
        width: 250px;
        flex-basis: 250px;
        height: 350px;
    }
    .slider{
        padding: 10px 60px;
    }
    .about-block{
        padding: 10px 10px;
    }
    .left-block{
        padding: 50px 30px;
        padding-bottom: 70px;
    }
    .left-block h1{
        font-size: 20px;
    }
    .left-block p{
        font-size: 14px;
        padding: 0;
    }
    .top-image, .bottom-image{
        width: 300px;
    }
    .header_btn{
        font-size: 16px;
    }
    .header_link_block{
        width: 60%;
    }
}

@media (max-width: 768px) {
    .page_header{
        display: none;
    }
    .content-block{
        height: 700px;
    }
    .hero-content{
        height: 80%;
        justify-content: flex-end;
    }
    .hero-content h1 {
        font-size: 90px;
    }
    .side-title {
        min-width: 120px;
        font-size: 16px;
    }
    .top-image, .slider-btn {
        display: none;
    }
    .bottom-image{
        margin: 0px;
        width: 250px;
    }
    .divider-line {
        width: 400px;
    }
    .divider-diamond.left{
        left: 155px;
    }
    .divider-diamond.right {
        right: 155px;
    }
    .hero-block p {
        font-size: 16px;
        bottom: 5%;
    }
    .corner-image {
        display: none;
    }
    .slide {
        flex: 0 0 calc(50% - 16px);
        height: 500px;
    }
    .about-block{
        flex-direction: column;
        align-items: center;
        padding: 0;
        height: 100%;
    }
    .left-block,.right-block{
        width: 98%;
    }
    .left-block h1{
        font-size: 20px;
    }
    .left-block p{
        font-size: 16px;
        padding: 0;
        text-indent: 25px;
    }
    .button{
        height: 60px;
        margin-bottom: 10px;
        font-size: 16px;
    }
    .about-content p {
        font-size: 1.3rem;
    }
    .logoimage{
        width: 45%;
    }
    .slider{
        padding: 0;
        width: auto;
        display: block;
        width: 100%;
        height: auto;
    }
    .slide {
        display: none;
    }
    .slide:hover {
        transform: translateY(0px);
    }
    .slide:nth-child(-n+3) {
        display: block;
        height: 160px;
        margin-bottom: 15px;
        width: 100%;
    }
    .slider-container.show-all .slide:nth-child(-n+7) {
        display: block;
        height: 160px;
        margin-bottom: 15px;
        width: 100%;
    }
    .open_last{
        width: 100%;
        height: 60px;
        font-family: 'Playfair Display', serif;
        position: relative;
        color: #E3DAD2;
        border-radius: 15px;
        border: 1px solid #E3DAD2;
        text-transform: uppercase;
        justify-content: center;
        align-items: center;
    }
    .slider-container{
        align-items: center;
        flex-direction: column;
        padding: 0 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 80px;
        padding: 0;
    }
    .logoimage{
        width: 300px;
    }
    .hero-content h1::before,
    .hero-content h1::after {
        content: none !important;
    }
    .hero-block p {
        font-size: 12px;
    }
    .divider-diamond.left{
        left: 25px;
    }
    .divider-diamond.right {
        right: 25px;
    }
    .side-title {
        display: none;
    }
    
    .title-wrapper {
        flex-direction: column;
    }
    
    .divider-line {
        width: 250px;
    }
    
    .corner-image {
        width: 50px;
    }
    
    .top-image, .bottom-image {
        width: 150px;
    }
    .content-block h2,
    .about-block h2,
    .general_text-block h2 {
        font-size: 24px;
        margin-top: 30px;
        width: 100%;
    }
    
    .slide-content h3 {
        font-size: 18px;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    .general_text-block{
        height: auto;
    }
    .scroll-to-top::after {
        width: 12px;
        height: 12px;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 70px;
    }
    .content-block h2, .about-block h2, .general_text-block h2{
        font-size: 18px;
        padding: 0;
    }
    .logoimage {
        margin-top: 10px;
    }
}
@media screen and (max-height: 750px) and (orientation: portrait) {
    .hero-block{
        height: 65vh;
    }
    .logoimage{
        width: 250px;
    }
    .hero-block p{
        bottom: 3%;
    }
}
@media screen and (min-height: 750px) and (max-height: 920px) and (orientation: portrait) {
    .hero-block{
        height: 55vh;
    }
    .hero-block p{
        bottom: 4%;
    }
}