.container {
    width: 100%;
    max-width: 1600px;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    padding-top: var(--spacing-unit);
    padding-bottom: var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.site-main {
    flex: 1;
}

.site-logo img {
    height: 30px;
    width: auto;
}



.main-navigation ul {
    display: flex;
    gap: 30px;
    padding-top: 0.5em;
}

.main-navigation a {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.main-navigation .current-menu-item a,
.main-navigation a:hover {
    font-weight: 700;
}

/* Mobile Toggle Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background: #000;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hamburger to Cross Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
        /*margin-top: 0.6em;*/
    }

    .site-logo img {
        height: 22px;
        width: auto;
        max-width: 100%;
        display: block;
    }


    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 100px var(--spacing-unit);
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .main-navigation a {
        font-size: 24px;
    }
}

/* Multi-level Filters */
.multi-filters {
    margin-top: 40px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group a {
    color: #999;
    transition: color 0.2s;
}

.filter-group a.active {
    color: #000;
    font-weight: 700;
}

.filter-group.type-filter {
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Home Layout */
.home-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.side-panel {
    flex: 0 0 240px;
    width: 240px;
    margin-top: 40px;
    font-family: inherit;
}

.main-content {
    min-width: 0;
    width: 100%;
    /* Ensure it fills the grid column */
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.sidebar-year-group {
    margin-bottom: 40px;
}

.sidebar-year-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    color: #000;
}

.sidebar-work-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-work-item {
    margin-bottom: 12px;
    line-height: 1.3;
}

.sidebar-work-link {
    display: block;
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
}

.sidebar-work-link:hover {
    color: #000;
}

.sidebar-work-name {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.sidebar-work-meta {
    font-size: 11px;
    color: #999;
    text-transform: lowercase;
    display: block;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .home-layout {
        display: block;
    }

    .side-panel {
        display: none;
    }
}

.masonry-grid {
    width: 100%;
    transition: opacity 0.3s ease-in-out, transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.masonry-grid.is-filtering {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 20px;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        column-count: 3;
        column-gap: 20px;
    }
}

.work-item {
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
}

.fade-in-scroll {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: opacity, transform;
}

.fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.work-image {
    margin-bottom: 12px;
}

.work-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Filters */
.filters-nav {
    margin-top: 60px;
    border-bottom: var(--line-thickness) solid var(--text-color);
    padding-bottom: 10px;
}

.filters-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-item a {
    font-size: 14px;
}

.filter-item.active a {
    font-weight: 700;
    border-bottom: var(--accent-thickness) solid var(--text-color);
}

/* ===== Эффект красной полоски зачеркивания в меню ===== */
.main-navigation a {
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

/* контейнер линии */
.main-navigation a::after {
    content: "";
    position: absolute;

    width: 100%;
    /* фиксированная ширина, не зависит от текста */
    height: 6px;
    background: #f81f1f99;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%) rotate(-14deg) scaleX(0);
    transform-origin: center;

    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

/* появление */
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    transform: translate(-50%, -50%) rotate(-14deg) scaleX(1);
}

/* ===== Эффект красной полоски зачеркивания в фильтре ===== */

.multi-filters .filter-group a {
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

/* линия */
.multi-filters .filter-group a::after {
    content: "";
    position: absolute;

    width: 100%;
    height: 6px;
    background: #f81f1f99;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%) rotate(-14deg) scaleX(0);
    transform-origin: center;

    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

/* hover + active */
.multi-filters .filter-group a:hover::after,
.multi-filters .filter-group a.active::after {
    transform: translate(-50%, -50%) rotate(-14deg) scaleX(1);
}