@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@200;300;400;500;600&display=swap');

:root {
    --bg: rgba(255, 255, 255, 0);
    --text: #111111;
    --muted: #666666;
    --accent: #7f0d0d;
    --tile-border: #e8e8e8;
    --year-pill: #f4f4f4;
    --year-active: #ffffff;
    --shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Geologica, Arial, sans-serif, serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}

.container {
    width: 90%;
    margin-inline: auto;
}

.archive_head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.9vw;
}

.archive_head .breadcrumbs {
    margin-bottom: 0;
}


.header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gap);
    flex-direction: row;
}

.header__title {
    margin: 0;
    font-size: 4.8vw;
    font-weight: 200;
    line-height: 105%
}

.header__filters {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.filter_trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.4vw 0 0.4vw 1.2vw;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 1.1vw;
    transition: all .2s ease;
    color: var(--text-main);
}

.filter_trigger:hover {
    border-color: var(--text-main);
}

.filter_trigger__label {
    font-size: 1.1vw;
    font-weight: 300;
    white-space: nowrap;
}

.filter_trigger_icon {
    display: none;
}

.filter_trigger_icon__img {
    width: 1.5vw;
    height: 1.5vw;
}

.filter_overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 900;
}

.filter_overlay[hidden] {
    display: none;
}

.filter_dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    margin-top: 0.5vw;
}

.filter_dropdown[hidden] {
    display: none;
}

.filter_dropdown__panel {
    width: 22vw;
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, .12);
    padding: 1vw;
}

.filter_dropdown__head,
.filter_dropdown__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5vw;
}

.filter_dropdown__title {
    font-weight: 600;
    font-size: 1.1vw;
}

.filter_dropdown__count {
    color: #666;
    margin-left: 0.3vw;
    font-size: 0.9vw;
}

.filter_dropdown__close {
    width: 1.8vw;
    height: 1.8vw;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.filter_dropdown__close.mobile_drawer__close::before,
.filter_dropdown__close.mobile_drawer__close::after {
    left: 50%;
}

.filter_dropdown__panel .mobile_drawer__head {
    margin-bottom: 2vw;
}

.filter_dropdown__body {
    padding: 0.5vw 0;
}

.filter_acc {
    border-bottom: 1px solid #eee;
    padding: 0.6vw 0;
}

.filter_acc__sum {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 300;
    font-size: 1.1vw;
    padding: 0.3vw 0;
}

.filter_acc__sum img {
    width: 0.8vw;
    height: 0.8vw;
    transform: rotate(0deg);
    transition: transform .2s ease;
}

.filter_acc[open]>.filter_acc__sum img {
    transform: rotate(180deg);
}

.filter_acc__sum::-webkit-details-marker {
    display: none;
}

.filter_acc__body {
    padding: 0.8vw 0 0.4vw;
}

.filter_check {
    display: block;
    font-size: 0.9vw;
    margin: 0.4vw 0;
    cursor: pointer;
}

.filter_dropdown__apply,
.filter_dropdown__reset {
    padding: 0.6vw 0.8vw;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 0.9vw;
    transition: all .2s ease;
}

.filter_dropdown__apply:hover,
.filter_dropdown__reset:hover {
    background: #f5f5f5;
}

.catalog {
    padding-bottom: 5.2vw;
}

.page_head {
    top: 0;
    background: linear-gradient(#fff, #fffcc0 0) padding-box;
    background: #fff;
    z-index: 5;
}

.years {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.year {
    width: 155px;
    height: 34px;
    display: inline-block;
    padding: 0 16px;
    text-align: center;
    background: var(--year-pill);
    color: var(--text);
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.year:hover {
    background: #ededed;
}

.year.is_active {
    background: var(--year-active);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(127, 13, 13, .08) inset;
}

.arhive_grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6vw;
    margin: 0 auto;
}

.filter_trigger_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: #fff;
}

.filter_dropdown {
    right: 0;
}

.filter_dropdown__panel {
    width: min(92vw, 360px);
}

.years_dropdown[hidden] {
    display: none !important
}

.years_dropdown {
    position: absolute;
    inset: auto auto auto auto;
    z-index: 30
}

.years_dropdown__panel {
    position: absolute;
    left: -68px;
    top: 8px;
    min-width: 328px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    padding: 6px 0;
}

.years_dropdown__list {
    margin: 0;
    padding: 0;
}

.years_dropdown__list li {
    border-bottom: 1px solid #e9e9e9;
}

.years_dropdown__list li:last-child {
    border-bottom: none;
}

.years_dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 70vh;
    overflow: auto;
}

.yd_item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    color: #111;
    display: block;
}

.yd_item:hover {
    background: #f6f6f6
}

.yd_item.is_active {
    background: white;
}

.card {
    background: #fff;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card__cover__year {
    width: 100%;
    height: 100%;
    cursor: default;
    transition: none;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../image/journalBack.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Geologica';
    color: white;
    font-size: 2.6vw;
    font-weight: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__cover__year_img .card__cover__year img {
    max-width: unset;
    height: 100%;
}

.card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #ddd;
}

.filter_trigger_icon {
    display: none
}

.years_dropdown {
    display: none
}

.card__cover {
    position: relative;
    background: #fafafa;
    overflow: hidden;
}

.card__cover img {
    width: 100%;
    height: 27.5vw;
    object-fit: cover;
    display: block;
}

.card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #000000a6;
}

.card__meta {
    padding: 1vw 0 0;
}

.card__title {
    margin: 0 0 0.35vw;
    font-size: 1.25vw;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 135%;
}

.card__year {
    margin: 0;
    color: black;
    font-size: 1.25vw;
    letter-spacing: -0.03em;
    line-height: 135%;
    font-weight: 300;
}

.visually_hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .container {
        padding: 0;
        padding-bottom: 3.4vw;
        width: 90%;
    }

    .header {
        flex-direction: inherit;
        align-items: end;
        gap: 43%;
    }

    .header__title {
        font-size: 8vw;
        font-weight: 200;
    }

    .card__cover__year {
        font-size: 6.5vw;
        width: 100%;
        height: 100%;
    }

    .filter_trigger {
        display: none;
    }

    .filter_trigger_icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 8vw;
        height: 8vw;
        border: none;
        border-radius: 6px;
        background: #fff;
        padding: 0 0 1vw 0;
        margin-right: -0.8vw;
    }

    .filter_trigger_icon__img {
        width: 100%;
        height: auto;
    }

    .filter_dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        margin: 0;
    }

    .filter_dropdown__panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        border: none;
        padding: 5vw;
        box-sizing: border-box;
    }

    .filter_dropdown__title {
        font-size: 5vw;
    }

    .filter_dropdown__count {
        font-size: 4vw;
    }

    .filter_dropdown__close {
        width: 8vw;
        height: 8vw;
    }

    .filter_acc__sum {
        font-size: 4.5vw;
        padding: 2vw 0;
    }

    .filter_acc__sum img {
        width: 3vw;
        height: 3vw;
    }

    .filter_acc__body {
        padding: 2vw 0 1vw;
    }

    .filter_check {
        font-size: 4vw;
        margin: 2vw 0;
    }

    .catalog {
        padding-bottom: 14vw;
    }

    .archive_head {
        padding-bottom: 0;
        justify-content: space-between;
        align-items: flex-end;
    }

    .years {
        display: none
    }

    .arhive_grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4.7vw;
    }

    .arhive_grid>.card.card__year {
        grid-column: auto;
        border: none;
        box-shadow: none;
        justify-self: start;
    }

    .arhive_grid>.card.card__year>.card__link {
        display: block;
    }

    .arhive_grid>.card.card__year .card__cover {
        aspect-ratio: 150 / 257;
        width: 100%;
    }

    .card__year img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .card__year .card__year__label {
        font-size: clamp(18px, 3.6vw, 22px);
        left: 50%;
        transform: translateX(-50%);
        bottom: 38%;
        top: auto;
    }

    .card__cover {
        width: 100%;
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }

    .card__meta {
        padding: 0 clamp(2px, 1vw, 4px) 0;
    }

    .archive_head .breadcrumbs {
        margin-bottom: 0;
    }

    .card__title {
        font-size: 3.7vw;
        line-height: 1.25;
        font-weight: 300;
        margin: 0 0 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card__year {
        font-size: 3.7vw;
        color: #000;
        font-weight: 300;
        margin: 0 0 2px;
        width: 100%;
    }

    .card__cover img
    {
        height: 57.5vw;
    }

    .filter_trigger_icon {
        display: inline-flex;
        border-radius: clamp(8px, 2.4vw, 10px);
    }

    .filter_trigger_icon__img {
        width: 100%;
        height: auto;
    }

    .show_more,
    .btn_show_more {
        display: none !important
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --scale: clamp(1, calc(1 + (100vw - 768px) / (1024 - 768) * 0.20), 1.2);
    }

    .card__cover__year {
        font-size: 4.5vw;
        width: 100%;
        height: 100%;
    }

    .archive_head .breadcrumbs {
        margin-bottom: 0;
    }

    .filter_trigger_icon {
        display: none
    }

    .header__title {
        font-size: 6.5vw;
    }

    .filter_trigger__label {
        font-size: 2.4vw;
    }

    .filter_trigger {
        padding: 0.6vw 0 0.6vw 1.6vw;
        gap: 0.8vw;
    }

    .filter_dropdown__panel {
        width: 35vw;
        padding: 2vw;
    }

    .filter_dropdown__title {
        font-size: 1.8vw;
    }

    .filter_acc__sum {
        font-size: 1.6vw;
    }

    .filter_check {
        font-size: 1.4vw;
    }

    .years_dropdown {
        display: none !important
    }

    .container {
        width: calc(100% - 40px);
        margin-inline: auto;
    }

    .archive_head {
        align-items: flex-end;
    }

    .catalog {
        padding-bottom: 10.4vw;
    }

    .arhive_grid>.card.card__year {
        grid-column: auto;
        border: none;
        box-shadow: none;
        justify-self: start;
    }

    .arhive_grid>.card.card__year>.card__link {
        display: block;
    }

    .arhive_grid>.card.card__year .card__cover {
        aspect-ratio: 150 / 257;
        width: 100%;
    }

    .card__year img {
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .years {
        display: flex;
        flex-wrap: wrap;
    }

    .year {
        width: 10vw;
        padding-left: calc(5px * var(--scale));
        padding-right: calc(5px * var(--scale));
        font-size: 2.6vw;
    }

    .year.is_active {
        background: #fff;
        border-color: #7f0d0d;
        box-shadow: 0 0 0 2px rgba(127, 13, 13, .08) inset;
    }

    .arhive_grid {
        display: grid;
        margin-top: 5.2vw;
        gap: 2.6vw;
    }

    .card__year {
        grid-column: 1 / -1;
        border: none;
        box-shadow: none;
    }

    .card__year .card__cover {
        aspect-ratio: 16 / 9;
    }

    .card__year .card__year__label {
        font-size: calc(40px * var(--scale));
    }

    .card {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #fff;
    }

    .card__link {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }

    .card__cover {
        width: 100%;
        height: calc((286px * var(--scale)) * 0.70);
        flex: 0 0 auto;
        position: relative;
        overflow: hidden;
    }

    .card__cover img {
        width: 100%;
        height: 28vw;
        object-fit: cover;
        display: block;
    }

    .card__meta {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .card__title {
        font-size: 2.35vw;
        font-weight: 300;
        line-height: 1.28;
        margin-bottom: calc(6px * var(--scale));
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card__year {
        font-size: 2.35vw;
        font-weight: 300;
        color: black;
        width: 100%;
    }
}

.card.card__year {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__cover__year {
    flex: 0 0 auto;
}

.card.card__year::after {
    content: "";
    display: block;
    padding-top: 1vw;
    flex: 1 1 auto;
}