/* Товары категории */
.products {
    margin-top: 0;      /* отступ даёт margin-bottom секции преимуществ */
    margin-bottom: 120px;
}

/* Табы категорий */
.products__tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.products__tabs::-webkit-scrollbar {
    display: none;
}

.products__tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px 10px 10px;
    background-color: var(--color-white);
    border: 1px solid transparent;
    border-radius: 30px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    color: #272b33;
    cursor: pointer;
    transition: border-color 0.2s;
}

.products__tab.is-active {
    border-color: var(--color-accent);
}

.products__tab-icon {
    width: 100%;
    height: 100%;
    max-width:80px;
    max-height:80px;
    object-fit: contain;
}

/* Список товаров */
.products__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.products__list[hidden] {
    display: none;
}

/* Карточка товара */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 46px;
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(39, 43, 51, 0.05);
}

.product-card__badge {
    position: absolute;
    top: 18px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    height: 33px;
    padding: 0 14px;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-accent);
    border-radius: 17px;
    font-size: 14px;
    font-weight: 600;
    color: #272b33;
}

.product-card__pic {
    height: 300px;
}

.product-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card__title {
    margin: 56px 0 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: #272b33;
}

.product-card__desc {
    display: none; /* показывается только на мобайле, как в макете */
    margin: 12px 0 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 25px;
    color: #272b33;
}

.product-card__tariff {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 34px 0 0;
    font-size: 17px;
    font-weight: 500;
    color: #272b33;
}

.product-card__tariff-icon {
    flex-shrink: 0;
}

.product-card__specs {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.product-card__specs li {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 16px;
    line-height: 21px;
}

.product-card__spec-label {
    color: #9aa0a8;
}

.product-card__spec-dots {
    flex: 1;
    align-self: center;
    height: 2px;
    margin: 0 12px;
    background-image: linear-gradient(to right, #c9ced6 4px, transparent 4px);
    background-size: 8px 2px;
    background-repeat: repeat-x;
}

.product-card__spec-value {
    font-weight: 600;
    color: #272b33;
    white-space: nowrap;
}

/* Цена + кнопка */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f5f9;
    border-radius:20px;
}

.product-card__cost-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #9aa0a8;
}

.product-card__price {
    margin: 4px 0 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #272b33;
}

.product-card__price-unit {
    font-size: 18px;
    font-weight: 400;
}

.product-card__plans {
    display: none; /* моб-плашки */
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card__btn {
    padding: 13px 25px;
    border-radius: 15px;
    font-size: 18px;
}

/* Таблет */
@media (max-width: 1024px) {
    .products__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .products__tab {
        padding: 10px 20px 10px 10px;
        border-radius: 20px;
    }

    .products__tab-icon {
        max-width: 56px;
        max-height: 56px;
    }

    .product-card {
        padding: 24px 24px 36px;
    }

    .product-card__pic {
        height: 240px;
    }

    .product-card__title {
        margin-top: 36px;
        font-size: 22px;
    }

    .product-card__tariff {
        margin-top: 26px;
        font-size: 16px;
    }

    .product-card__price {
        font-size: 30px;
    }

    .product-card__btn {
        margin-right: 0;
    }
}

/* Мобайл */
@media (max-width: 640px) {
    .products {
        margin-bottom: 64px;
    }

    .products__tabs {
        gap: 12px;
        margin-bottom: 24px;
    }

    .products__tab {
        gap: 6px;
        padding: 6px 20px 6px 6px;
        font-size: 18px;
        white-space: nowrap;
    }

    .products__tab-icon {
        max-width: 48px;
        max-height: 40px;
    }

    .products__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-card {
        padding: 0 20px 20px;
    }

    .product-card__badge {
        top: 17px;
        right: 20px;
        height: 38px;
        border-radius: 19px;
    }

    .product-card__pic {
        height: 260px;
        margin-top: 55px;
    }

    .product-card__title {
        margin-top: 0;
        font-size: 28px;
    }

    .product-card__desc {
        display: block;
        margin-bottom: 8px;
    }

    .product-card__tariff {
        margin: 0 0 17px;
        font-size: 17px;
    }

    .product-card__specs {
        margin-top: 0;
    }

    .product-card__specs li {
        padding: 2px 0;
        line-height: 21px;
    }

    .product-card__footer {
        display: block;
        padding-top: 20px;
    }

    .product-card__cost {
        display: none;
    }

    .product-card__plans {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-card__plan {
        display: flex;
        flex-direction: column;
        padding: 12px 20px;
        background-color: #f0f5f9;
        border-radius: 16px;
    }

    .product-card__plan-label {
        font-size: 16px;
        color: #9aa0a8;
    }

    .product-card__plan-price {
        margin-top: 2px;
        font-size: 32px;
        font-weight: 500;
        line-height: 38px;
        color: #272b33;
    }

    .product-card__plan-unit {
        margin-top: 2px;
        font-size: 15px;
        color: #9aa0a8;
    }

    .product-card__btn {
        width: 100%;
        height: 44px;
        margin: 28px 0 0;
        border-radius: 22px;
        font-size: 16px;
    }
}