.promo {
    padding: 0;
    padding-bottom: 80px;
}

.promo__wrapper {
    max-width: 1310px;
    padding: 0 15px;
    margin: 0 auto;
}

.promo__title,
.promo__past-title {
    margin-bottom: 70px;
    text-align: center;
}

.promo__list,
.promo__past-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
    margin-bottom: 124px;
}

.promo__list--index {
    margin: 0;
}

.promo__item {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.promo__item:hover {
    box-shadow: 0px 0px 30px #dedede;
}

.promo__item-content {
    padding: 16px 32px 32px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eeeeee;
    height: 100%;
}

.promo__top {
    display: flex;
    height: 20px;
    margin-bottom: 20px;
}

.promo__top-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: bold;
    font-size: 10px;
    line-height: 13px;
    letter-spacing: -0.015em;
    background-color: #000;
    color: var(--accent);
    position: relative;
}

.promo__top-action-title {
    padding: 0 6px;
    margin: 0;
}

.promo__top-action-star {
    width: 7px;
    height: 7px;
    background-repeat: no-repeat;
    background-image: url("../icons/star-yellow7x7.png");
}

.promo__top-date {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 5px;
    font-size: 10px;
    line-height: 13px;
    background-color: var(--accent);
    border: 1px solid #000;
}

.promo__item-img {
    display: flex;
    justify-content: center;
    background-color: var(--main-dark);
}

.promo__item-img img {
    width: 100%;
    height: 100%;
    height: 201px;
    object-fit: cover;
}

.promo__item-title {
    margin: 0;
    margin-bottom: 24px;
    font-weight: bold;
    font-size: 18px;
    line-height: 23px;
    letter-spacing: -0.015em;
}

.promo__item-description {
    margin: 0;
    word-break: break-word;
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.015em;
}

.promo__item-bottom {
    /* display: flex;
  justify-content: space-between; */
}

.promo__button-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.02em;
    border: 2px solid #000000;
    border-radius: 45px;
    color: #121212;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    max-width: 267px;
    height: 64px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.promo__button-inner:hover {
    color: #121212;
    border-color: #fce500;
    background-color: #fce500;
}

.promo__item-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    /* max-width: 156px;
  width: 100%; */
}

.promo__item-buttons-wrapper {
    display: flex;
    justify-content: space-between;
}

.promo__item-button {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 164px;
    width: 100%;
    height: 48px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--main-dark);
    border-radius: 57px;
    transition: all 0.4s ease;
}

.promo__item-button--link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.promo__item-button--link span {
    margin-right: 5px;
}

.promo__item-button .arrow {
    width: 16px;
    height: 16px;
    background-image: url("../icons/arrow_right.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.promo__item-button--more {
    border: 2px solid var(--accent);
}

.promo__item-button--more::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.promo__item-button--more span {
    margin-right: 5px;
}

.promo__item-button:hover {
    background-color: #fce500;
    color: #121212;
    border: 1px solid #fce500;
}
.promo__item-button--more:hover {
    color: var(--main-dark);
    background-color: var(--accent);
}

.promo__item-button--dark {
    color: var(--main-dark);
    background-color: var(--accent);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.promo__item-button--dark:hover {
    background-color: var(--main-dark);
    color: var(--accent);
    border-color: #121212;
}

.promo__item-phone {
    text-align: center;
    max-width: 225px;
    width: 100%;
    font-size: 14px;
    margin: 0 auto;
}
.promo__item-phone a {
    font-weight: 700;
    text-decoration: underline;
}

.promo__past-item-title {
    height: auto;
}

.promo__past-item-description {
    height: auto;
    margin: 0;
}

.promo__past-top {
    display: flex;
    height: 20px;
    margin-bottom: 20px;
}

.promo__past-action,
.promo__past-date {
    border: 1px solid #000;
}

.promo__past-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
}

.promo__past-action-star {
    display: block;
    width: 7px;
    height: 7px;
    background-image: url("../icons/star-dark7x7.svg");
    background-repeat: no-repeat;
}

.promo__past-action-title {
    margin: 0;
    padding: 0 12px;
    font-weight: bold;
    font-size: 10px;
    line-height: 13px;
}

.promo__past-date {
    font-size: 10px;
    padding: 4px 5px;
}

.promo__pagination {
    margin-bottom: 80px;
}

/* ФОРМА */
.promo__questions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 48px 72px 56px;
    background-color: var(--main-dark);
    border-radius: 10px;
}

.promo__questions-title {
    width: 100%;
    max-width: 268px;
    margin: 0;
    color: var(--accent);
    font-weight: normal;
    font-size: 16px;
    line-height: 157%;
    letter-spacing: -0.015em;
}

.promo__form {
    display: flex;
    max-width: 736px;
    width: 100%;
    justify-content: space-between;
}

.promo__input {
    background-color: transparent;
    color: var(--accent);
    border-bottom: 1px solid #505050;
    outline: none;
}

.promo__input--phone {
    max-width: 260px;
    width: 100%;
}

.promo__submit {
    width: 100%;
    max-width: 196px;
    padding: 15px 20px;
    border: 1px solid transparent;
    border-radius: 57px;
    text-align: center;
    color: var(--main-dark);
    background-color: var(--accent);
    cursor: pointer;
    transition: all 0.3s linear;
}

.promo__submit:hover {
    border: 1px solid var(--accent);
    color: var(--accent);
    background-color: var(--main-dark);
}

@media screen and (max-width: 1190px) {
    .promo__list,
    .promo__past-list {
        justify-content: center;
    }

    .promo__questions {
        flex-direction: column;
        align-items: center;
    }

    .promo__questions-title {
        text-align: center;
        margin-bottom: 32px;
    }

    .promo__submit {
        padding: 10px 20px;
    }
}

@media screen and (min-width: 767px) and (max-width: 900px) {
    .promo__list,
    .promo__past-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
@media screen and (max-width: 767px) {
    .promo {
        padding-top: 64px;
    }
    .promo__content {
        padding-top: 32px;
    }

    .promo__title {
        margin-bottom: 40px;
    }

    .pagination__page--promo:not(:last-child) {
        margin-right: 5px;
    }

    .promo__form {
        flex-direction: column;
        align-items: center;
    }

    .promo__questions {
        padding: 20px;
    }

    .promo__questions-title {
        text-align: center;
        margin-bottom: 20px;
    }

    .promo__input {
        max-width: 260px;
        width: 100%;
        padding: 0;
        padding-bottom: 5px;
        margin-bottom: 24px;
        text-align: center;
    }

    .promo__item-buttons {
        flex-direction: column;
    }
    .promo__item-button {
        max-width: none;
    }
}

@media screen and (max-width: 550px) {
    .promo__item-content {
        padding: 16px 12px 24px;
    }
}
