.projects-page {
    background: #fff;
}

.projects-page__main {
    display: flex;
    flex-direction: column;
}

/* Hero */
.projects-hero {
    position: relative;
    margin-top: calc(-1 * var(--header-height));
    overflow: hidden;
}

.projects-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 364px;
}

.projects-hero__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 364px;
    object-fit: cover;
}

.projects-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 43, 43, 0.75);
}

.projects-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 364px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 24px 0;
}

.projects-hero__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projects-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.projects-hero__breadcrumb-link,
.projects-hero__breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    line-height: 15.6px;
    transition: opacity 0.2s ease;
}

a.projects-hero__breadcrumb-link:hover {
    opacity: 0.75;
}

.projects-hero__breadcrumb-current {
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    line-height: 15.6px;
}

.projects-hero__title {
    margin: 0;
    max-width: 780px;
    color: #fff;
    font-family: var(--second-family);
    font-size: 49px;
    font-weight: 700;
    line-height: 49px;
}

.projects-hero__stats {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.projects-hero__stats-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 24px 24px;
}

.projects-hero__stat {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.projects-hero__stat-value {
    color: #fff;
    font-family: var(--second-family);
    font-size: 31px;
    font-weight: 600;
    line-height: 40px;
}

.projects-hero__stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    line-height: 18.2px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

/* List */
.projects-list {
    padding: 40px 24px 96px;
}

.projects-list__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Filters */
.projects-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.projects-filters__btn {
    padding: 16px 32px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    background: transparent;
    color: rgba(0, 0, 0, 0.5);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.projects-filters__btn:hover {
    opacity: 0.85;
}

.projects-filters__btn.is-active {
    border-color: #fe924e;
    background: #fe924e;
    color: #fff;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.projects-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    width: 100%;
}

.projects-card.is-hidden {
    display: none;
}

.projects-card__image {
    display: block;
    width: 100%;
    height: 213px;
    border-radius: 16px;
    object-fit: cover;
    background: #f2f2f2;
}

.projects-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.projects-card__meta {
    margin: 0;
    color: #707076;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    line-height: 16.9px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.projects-card__title {
    margin: 0;
    color: #000;
    font-family: var(--second-family);
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
}

.projects-card__text {
    margin: 0;
    color: #000;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
}

.projects-card__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.projects-card__location-icon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    filter: brightness(0);
}

.projects-card__location-text {
    color: rgba(0, 0, 0, 0.5);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    line-height: 15.6px;
}

/* Pagination */
.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.projects-pagination__arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    padding: 13px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.projects-pagination__arrow:hover:not(:disabled) {
    opacity: 0.85;
}

.projects-pagination__arrow:disabled {
    cursor: default;
    opacity: 0.5;
}

.projects-pagination__arrow--next:not(:disabled) {
    border-color: #fe924e;
    background: #fe924e;
}

.projects-pagination__arrow--next:not(:disabled) img {
    filter: brightness(0) invert(1);
}

.projects-pagination__arrow img {
    display: block;
    width: 24px;
    height: 24px;
}

.projects-pagination__arrow-icon {
    transform: rotate(180deg);
}

.projects-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #f2f2f2;
}

.projects-pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #000;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.projects-pagination__page:hover {
    opacity: 0.85;
}

.projects-pagination__page.is-active {
    background: #fff;
}

.projects-pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: rgba(0, 0, 0, 0.5);
    font-family: var(--font-family);
    font-size: 8px;
    font-weight: 400;
    line-height: 8px;
    letter-spacing: 2px;
}
