/* ---- Сетка годов ---- */
.pg-years__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 10px 20px 0px;
    padding: 0;
}

.pg-years__item {
    list-style: none;
}

.pg-years__item::before,
.pg-years__item::after {
    display: none;
    content: none;
}

.pg-years__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ---- Карточка ---- */
.pg-years__cover {
    position: relative;
    padding-top: 64.6%;
    overflow: hidden;
    background: #0d1e35;
    border-radius: 4px;
    cursor: pointer;
}

.pg-years__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    border-radius: 4px;
    transition: transform 0.4s ease;
}

.pg-years__link:hover .pg-years__img {
    transform: scale(1.05);
}

.pg-years__img--placeholder {
    background: linear-gradient(145deg, #1e3a5f 0%, #0d2240 100%);
}

/* Постоянный градиент снизу */
.pg-years__cover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 51%;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Затемнение при hover */
.pg-years__cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    pointer-events: none;
    border-radius: 4px;
    z-index: 2;
}

.pg-years__link:hover .pg-years__cover::before {
    background: rgba(0, 0, 0, 0.35);
}

/* ---- Текстовый блок ---- */
.pg-years__info {
    position: absolute;
    bottom: 26px;
    left: 31px;
    right: 65px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* Название года */
.pg-years__name {
    font-size: 20px;
    font-weight: 700;
    font-family: "Open Sans", Arial, sans-serif;
    color: #fff;
    line-height: 1.25;
    flex: 1;
}

/* ---- Стрелка — arrow-all ---- */
.pg-years__arrow {
    position: absolute;
    right: -33px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 8px;
    flex-shrink: 0;
}

.pg-years__arrow-icon {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    color: #fff;
}

.pg-years__arrow-line {
    background: #fff;
    height: 2px;
    position: absolute;
    right: 1px;
    top: 3px;
    left: calc(100% - 18px);
    transition: left 0.5s ease;
}

.pg-years__link:hover .pg-years__arrow-line {
    left: calc(100% - 34px);
}

/* ---- Состояния ---- */
.pg-empty {
    color: #888;
    font-size: 15px;
}

/* ---- Адаптив ---- */
@media (max-width: 991px) {
    .pg-years__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pg-years__list { grid-template-columns: 1fr; }
    .pg-years__name { font-size: 17px; }
}