.phones {
    padding: 40px;
    background: #f5f5f5;
}

.phones__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.phones__item {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 0rem 0rem rgba(0,0,0,0.1), 0 0rem 0rem rgba(0,0,0,0.1);
    transition-duration: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.phones__item img {
    width: 100%;
    height: 226px;
    object-fit: contain;
}

.phones__itemBanner:before {
    content: 'новинка';
    position: absolute;
    left: 10px;
    color: #ffffff;
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 22px;
    min-width: 100px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.2rem;
    background: #edc243;
}

.phones__item:hover {
    box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.1), 0 0.33rem 1rem rgba(0,0,0,0.15);
    z-index: 4;
    transition-duration: 0.3s;
}

.phones__block {
    padding: 0.5rem 1rem 1rem 1rem;
}

.phones__subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #adadad;
    margin: 0;
    font-weight: 400;
}

.phones__block a {
    text-decoration: none;
    color: #000000;
}

.phones__title {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.4;
    margin: 5% 0 0.3rem;
}

.phones__description {
    margin: 0 0 60px;
    list-style: disc;
}

.phones__description li {
    font-size: 0.9rem;
    color: #7f7f7f;
    line-height: 15px;
    margin: 0 0 0.5rem;
}

.phones__price {
    color: #525151;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: .8rem;
}

.phones__button {
    font-size: 16px;
    line-height: 1.20;
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0em;
    border-radius: 0.38em;
    padding: 0.8em 1.8em;
    background: #ffffff;
    border: 2px solid #b2b2b2;
    color: #1a1a1a;
    cursor: pointer;
    transition-duration: 0.3s;
}

.phones__buttonOpacity {
    border: 2px solid #a51b0b;
    color: #ffffff;
	background:#a51b0b;
    transition-duration: 0.3s;
}

.phones__button:hover {
    background: #454545;
    border: 2px solid #454545;
    color: #ffffff;
    transition-duration: 0.3s;
    opacity: 1;
}

.phones__subText {
    font-size: 0.9rem;
    margin: 0;
    color: #7f7f7f;
    line-height: 15px;
    font-weight: 900;
}

.phones__description {
    color: #7f7f7f;
}

@media (max-width: 1199px) {
    .phones__list {
        grid-template-columns: 1fr 1fr 1fr;
        transition-duration: 0.3s;
    }
}

@media (max-width: 1023px) {
    .phones__list {
        grid-template-columns: 1fr 1fr;
        transition-duration: 0.3s;
    }

    .phones__description {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .phones {
        padding: 20px 15px;
    }
}

@media (max-width: 500px) {
    .phones__list {
        grid-template-columns: 1fr;
        transition-duration: 0.3s;
    }
}