/* ======================================================= */
/* ================= БАЗОВЫЕ НАСТРОЙКИ ================== */
/* ======================================================= */

main{
    overflow-x: hidden;
}


/* ======================================================= */
/* ========================== HERO ====================== */
/* ======================================================= */

.publications-hero{
    position: relative;

    display: flex;
    align-items: center;

    min-height: 800px;
    padding: 90px 8% 70px;
    box-sizing: border-box;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 83% 34%,
            rgba(245, 166, 35, 0.20) 0%,
            rgba(223, 93, 5, 0.08) 25%,
            transparent 55%
        ),
        linear-gradient(
            125deg,
            #080808 0%,
            #14100d 50%,
            #2e1c0d 100%
        );
}

.publications-hero::before{
    content: "✦";

    position: absolute;
    top: 50%;
    right: 9%;

    color: rgba(245, 166, 35, 0.12);
    font-size: clamp(180px, 24vw, 360px);
    line-height: 1;
    pointer-events: none;

    transform: translateY(-50%);
}

.publications-hero::after{
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 120px;
    pointer-events: none;

    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.56) 100%
    );
}

.publications-hero-content{
    position: relative;
    z-index: 1;

    max-width: 760px;
}

.publications-hero-label{
    margin: 0 0 16px;

    color: rgb(245, 166, 35);
    font-family: "Avenir-Medium", sans-serif;
    font-size: 14px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.publications-hero h1{
    margin: 0;

    color: white;
    font-family: "Avenir-Bold", sans-serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: 0.5px;

    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.60);
}

.publications-hero h1::after{
    content: "";
    display: block;

    width: 90px;
    height: 4px;
    margin-top: 23px;

    border-radius: 99px;

    background: linear-gradient(
        90deg,
        rgb(223, 93, 5),
        rgb(245, 166, 35)
    );
}

.publications-hero-description{
    max-width: 650px;
    margin: 25px 0 0;

    color: rgba(255, 255, 255, 0.80);
    font-family: "Avenir-Medium", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}


/* ======================================================= */
/* ====================== ПУБЛИКАЦИИ ==================== */
/* ======================================================= */

.publications-section{
    min-height: 460px;
    padding: 82px 8% 110px;
    box-sizing: border-box;

    background: linear-gradient(
        180deg,
        #11100f 0%,
        #1a1410 55%,
        rgb(83, 49, 19) 100%
    );
}

.publications-container{
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.publications-section-heading{
    margin-bottom: 38px;
}

.publications-section-label{
    margin: 0 0 10px;

    color: rgb(245, 166, 35);
    font-family: "Avenir-Medium", sans-serif;
    font-size: 14px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.publications-section-heading h2{
    margin: 0;

    color: white;
    font-family: "Avenir-Bold", sans-serif;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.15;
}


/* ======================================================= */
/* ==================== ПУСТОЕ СОСТОЯНИЕ ================ */
/* ======================================================= */

.publications-empty{
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 760px;
    margin: 0 auto;
    padding: 58px 48px;
    box-sizing: border-box;

    text-align: center;

    border: 1px solid rgba(245, 166, 35, 0.28);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.045);

    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

.publications-empty-icon{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;
    margin-bottom: 22px;

    font-size: 34px;

    border: 1px solid rgba(245, 166, 35, 0.42);
    border-radius: 50%;

    background: rgba(245, 166, 35, 0.10);
}

.publications-empty h3{
    margin: 0 0 14px;

    color: white;
    font-family: "Avenir-Bold", sans-serif;
    font-size: 27px;
    line-height: 1.2;
}

.publications-empty p{
    max-width: 590px;
    margin: 0;

    color: rgba(255, 255, 255, 0.75);
    font-family: "Avenir-Medium", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}


/* ======================================================= */
/* ============= БУДУЩИЕ КАРТОЧКИ ПУБЛИКАЦИЙ ============ */
/* ======================================================= */

/*
    Эти стили пока не видны, так как HTML-шаблон карточек
    закомментирован. Они начнут работать, когда ты добавишь
    .publications-grid и .publication-card.
*/

.publications-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.publication-card{
    display: flex;
    flex-direction: column;

    min-height: 280px;
    padding: 26px;
    box-sizing: border-box;

    border: 1px solid rgba(245, 166, 35, 0.24);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.055);

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.publication-card:hover{
    transform: translateY(-6px);

    border-color: rgba(245, 166, 35, 0.62);
    background: rgba(255, 255, 255, 0.09);
}

.publication-card-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 24px;
}

.publication-card-category,
.publication-card-date{
    margin: 0;

    color: rgb(245, 166, 35);
    font-family: "Avenir-Medium", sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.publication-card-date{
    color: rgba(255, 255, 255, 0.52);
}

.publication-card-title{
    margin: 0 0 14px;

    color: white;
    font-family: "Avenir-Bold", sans-serif;
    font-size: 23px;
    line-height: 1.25;
}

.publication-card-description{
    margin: 0;

    color: rgba(255, 255, 255, 0.72);
    font-family: "Avenir-Medium", sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

.publication-card-link{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    width: fit-content;
    margin-top: auto;
    padding-top: 24px;

    color: rgb(245, 166, 35);
    font-family: "Avenir-Bold", sans-serif;
    font-size: 15px;
    text-decoration: none;
}

.publication-card-link span{
    font-size: 21px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.publication-card-link:hover span{
    transform: translateX(5px);
}

/* ======================================================= */
/* ============== ИЗОБРАЖЕНИЕ В HERO ПУБЛИКАЦИЙ ========= */
/* ======================================================= */

.publications-hero{
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    overflow: hidden;
}

.publications-hero-content{
    position: relative;
    z-index: 2;

    flex: 1 1 520px;
}

.publications-hero-image{
    position: relative;
    z-index: 2;

    flex: 0 1 440px;

    width: min(38vw, 440px);
    aspect-ratio: 4 / 3;

    overflow: hidden;

    border: 1px solid rgba(245, 166, 35, 0.40);
    border-radius: 24px;

    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.36),
        0 0 32px rgba(245, 166, 35, 0.14);
}

.publications-hero-image::before{
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background: linear-gradient(
        135deg,
        rgba(245, 166, 35, 0.12),
        transparent 50%,
        rgba(0, 0, 0, 0.26)
    );
}

.publications-hero-image img{
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: brightness(0.90) saturate(0.94);

    transition:
        filter 0.4s ease,
        transform 0.5s ease;
}

.publications-hero-image:hover img{
    filter: brightness(1) saturate(1);

    transform: scale(1.04);
}


/* ======================================================= */
/* ====================== ПЛАНШЕТЫ ======================= */
/* ======================================================= */

@media (max-width: 1024px){
    .publications-hero{
        gap: 36px;
    }

    .publications-hero-image{
        flex-basis: 360px;

        width: min(38vw, 360px);

        border-radius: 20px;
    }
}


/* ======================================================= */
/* ======================= ТЕЛЕФОНЫ ====================== */
/* ======================================================= */

@media (max-width: 768px){
    .publications-hero{
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .publications-hero-content{
        flex-basis: auto;
    }

    .publications-hero-image{
        width: 100%;
        max-width: 520px;

        aspect-ratio: 16 / 10;

        border-radius: 18px;
    }
}


/* ======================================================= */
/* =================== ОБЫЧНЫЕ ТЕЛЕФОНЫ ================= */
/* ======================================================= */

@media (max-width: 480px){
    .publications-hero{
        gap: 22px;
    }

    .publications-hero-image{
        border-radius: 14px;
    }
}


/* ======================================================= */
/* ====================== ПЛАНШЕТЫ ======================= */
/* ======================================================= */

@media (max-width: 1024px){
    .publications-hero{
        min-height: 360px;
        padding: 82px 6% 62px;
    }

    .publications-section{
        padding: 68px 6% 86px;
    }

    .publications-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ======================================================= */
/* ======================= ТЕЛЕФОНЫ ====================== */
/* ======================================================= */

@media (max-width: 768px){
    .publications-hero{
        min-height: 330px;
        padding: 78px 6% 54px;
    }

    .publications-hero::before{
        top: 48%;
        right: -4%;

        font-size: 210px;
    }

    .publications-hero-description{
        font-size: 16px;
    }

    .publications-section{
        padding: 54px 6% 70px;
    }

    .publications-section-heading{
        margin-bottom: 28px;
    }

    .publications-empty{
        padding: 44px 28px;
        border-radius: 20px;
    }

    .publications-empty h3{
        font-size: 24px;
    }

    .publications-grid{
        grid-template-columns: 1fr;
    }
}


/* ======================================================= */
/* =================== ОБЫЧНЫЕ ТЕЛЕФОНЫ ================= */
/* ======================================================= */

@media (max-width: 480px){
    .publications-hero{
        min-height: 300px;
        padding: 70px 5% 46px;
    }

    .publications-hero-label{
        margin-bottom: 12px;
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .publications-hero h1{
        font-size: 32px;
    }

    .publications-hero h1::after{
        width: 58px;
        height: 3px;
        margin-top: 16px;
    }

    .publications-hero-description{
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.55;
    }

    .publications-section{
        padding: 42px 5% 56px;
    }

    .publications-section-label{
        font-size: 11px;
    }

    .publications-section-heading h2{
        font-size: 25px;
    }

    .publications-empty{
        padding: 36px 20px;
        border-radius: 16px;
    }

    .publications-empty-icon{
        width: 62px;
        height: 62px;
        margin-bottom: 18px;

        font-size: 28px;
    }

    .publications-empty h3{
        font-size: 21px;
    }

    .publications-empty p{
        font-size: 14px;
        line-height: 1.6;
    }

    .publication-card{
        min-height: 0;
        padding: 21px;
        border-radius: 16px;
    }
}