/* ══ Описание товаров категории «Компьютеры» ══ */
/* Подключается после product-card.css; работает только с .pc-desc. */

.product .description.pc-desc {
    font-size: 15px;
    line-height: 1.6;
}

/* Короткий вступительный блок без тяжёлого фона. Зелёный вместо красного. */
.product .pc-desc__lead {
    --pc-desc-green: #63d99b;

    position: relative;
    margin: 0 0 16px;
    padding: 18px 20px 18px 22px;
    border-left: 2px solid var(--pc-desc-green);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(99, 217, 155, 0.08), rgba(99, 217, 155, 0) 78%);
}

.product .pc-desc__lead .pc-desc__eyebrow {
    color: var(--pc-desc-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.product .pc-desc__lead p {
    margin: 7px 0 0;
    color: var(--pc-ink);
    font-size: 16px;
    line-height: 1.6;
}

/* Три спокойных сценария вместо сплошного текста. */
.product .pc-desc__ways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product .pc-desc__way {
    position: relative;
    min-width: 0;
    padding: 16px 16px 16px 44px;
    border: 1px solid var(--pc-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.012);
}

.product .pc-desc__way::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 18px;
    width: 20px;
    height: 20px;
    background: var(--pc-accent);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.product .pc-desc__way:nth-child(1)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='7'%20width='18'%20height='13'%20rx='2'/%3E%3Cpath%20d='M8%207V5a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='7'%20width='18'%20height='13'%20rx='2'/%3E%3Cpath%20d='M8%207V5a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2'/%3E%3C/svg%3E");
}

.product .pc-desc__way:nth-child(2)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M13%202%204%2014h7l-1%208%209-12h-7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M13%202%204%2014h7l-1%208%209-12h-7z'/%3E%3C/svg%3E");
}

.product .pc-desc__way:nth-child(3)::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l1.6%204.4L18%209l-4.4%201.6L12%2015l-1.6-4.4L6%209l4.4-1.6z'/%3E%3Cpath%20d='M19%2015l.7%201.8L21.5%2017.5l-1.8.7L19%2020l-.7-1.8-1.8-.7%201.8-.7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l1.6%204.4L18%209l-4.4%201.6L12%2015l-1.6-4.4L6%209l4.4-1.6z'/%3E%3Cpath%20d='M19%2015l.7%201.8L21.5%2017.5l-1.8.7L19%2020l-.7-1.8-1.8-.7%201.8-.7z'/%3E%3C/svg%3E");
}

.product .pc-desc__way-title {
    color: var(--pc-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.product .pc-desc__way-text {
    margin-top: 6px;
    color: var(--pc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.product .pc-desc__details-title {
    margin: 20px 0 0;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Оригинальное описание аккуратно перечисляется, а не идёт сплошной стеной. */
.product .pc-desc .min-height {
    margin-top: 10px;
}

.product .pc-desc .min-height p {
    margin: 0 0 12px;
    font-size: 14px;
}

.product .pc-desc .min-height > p:has(> strong:only-child):not(:first-child) {
    margin-top: 16px;
    color: var(--pc-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.product .pc-desc .min-height ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0 0 14px;
    padding: 0;
    color: var(--pc-ink);
    list-style: none;
}

.product .pc-desc .min-height li {
    position: relative;
    margin: 0 !important;
    padding-left: 18px;
    color: var(--pc-ink);
    font-size: 14px;
    line-height: 1.55;
}

.product .pc-desc .min-height li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pc-accent);
    opacity: 0.8;
}

.product .pc-desc .min-height > p:last-child {
    color: var(--pc-muted);
    font-size: 12px;
    line-height: 1.6;
}

.product .pc-desc .js-description {
    margin-top: 2px;
}

@media (max-width: 767.98px) {
    .product .pc-desc__lead {
        padding: 16px 16px 16px 18px;
    }

    .product .pc-desc__lead p {
        font-size: 15px;
    }

    .product .pc-desc__ways {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .product .pc-desc__way {
        padding: 14px 14px 14px 42px;
    }

    .product .pc-desc__way::before {
        left: 14px;
        top: 16px;
        width: 18px;
        height: 18px;
    }

    .product .pc-desc .min-height ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .product .pc-desc .min-height li {
        font-size: 13px;
    }
}

/* На десктопе заголовок «Подробнее о компьютере» был слишком мелким. */
@media (min-width: 768px) {
    .product .pc-desc__details-title {
        font-size: 15px;
    }

    .product .pc-desc .min-height p {
        font-size: 16px;
    }
}
