.product-tabs {
    margin-top: 40px;
}

.product-tabs__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-tabs__nav::-webkit-scrollbar {
    display: none;
}

.product-tabs__button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.product-tabs__button:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.product-tabs__button.is-active {
    color: var(--bg);
    background: var(--ink);
    border-color: var(--ink);
}

.product-tabs__button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.product-tabs__panel {
    padding-top: 28px;
}

.product-tabs__panel[hidden] {
    display: none;
}

.product-tabs__description {
    font-size: 16px;
    color: var(--ink-soft);
}

.product-tabs__description p + p {
    margin-top: 16px;
}

.product-tabs .product-specs {
    border-top: 0;
}

@media (max-width: 560px) {
    .product-tabs {
        margin-top: 32px;
    }

    .product-tabs__button {
        min-height: 46px;
        padding: 0 18px;
        font-size: 14px;
    }

    .product-tabs__panel {
        padding-top: 22px;
    }
}

/* Product advantages are shown as a standalone card grid below the product, not as a tab. */
.product-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.product-benefits__item {
    min-width: 0;
    padding: 28px 26px 30px;
    border: 1px solid #d9dee2;
    border-radius: var(--rd-radius-lg, 24px);
    background: #fff;
}

.product-benefits__icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    border-radius: 18px;
    background: #dff9fb;
    color: #0b0b0b;
}

.product-benefits__icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-benefits__item h2 {
    margin: 0 0 12px;
    font-family: Manrope, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.product-benefits__item p {
    margin: 0;
    color: #777;
    font-size: 14.5px;
    line-height: 1.58;
}

@media (max-width: 960px) {
    .product-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .product-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 36px;
    }

    .product-benefits__item {
        padding: 22px 20px 24px;
    }
}


/* Product detail: FAQ + direct contact block below advantages. */
.product-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 22px;
    align-items: start;
    margin-top: 36px;
    padding: 0;
}

.product-help__faq-column {
    min-width: 0;
}

.product-help__title {
    grid-column: 1 / -1;
    margin: 0;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.product-help__faq.faq {
    border-top: 0;
}

.product-help__faq .faq__item:first-child {
    margin-top: 0;
}

.product-help-card {
    padding: 26px 22px 22px;
    border: 1px solid #dfe3e6;
    border-radius: 28px;
    background: #fff;
}

.product-help-card__title {
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
}

.product-help-card__person {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.product-help-card__photo {
    display: block;
    width: 82px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.product-help-card__description {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.55;
}

.product-help-card__label {
    margin-top: 26px;
    font-size: 15px;
    font-weight: 700;
}

.product-help-card__contacts {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.product-help-card__phone,
.product-help-card__messenger {
    min-height: 52px;
    border: 1px solid #dfe3e6;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.product-help-card__phone {
    min-width: 0;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-color: #49a9d8;
    border-radius: 999px;
    background: #49a9d8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.product-help-card__phone svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-help-card__phone:hover,
.product-help-card__phone:focus-visible {
    border-color: #358fbd;
    background: #358fbd;
    color: #fff;
    outline: 0;
}

.product-help-card__messenger {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
}

.product-help-card__messenger img,
.product-help-card__messenger svg {
    display: block;
    width: 27px;
    height: 27px;
}

.product-help-card__messenger--telegram {
    color: #49a9d8;
}

.product-help-card__messenger--telegram svg {
    fill: currentColor;
}

.product-help-card__messenger:hover,
.product-help-card__messenger:focus-visible {
    border-color: #49a9d8;
    outline: 0;
}

.product-help-card__callback {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    padding: 0 22px;
    border: 1px solid #171717;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.product-help-card__callback:hover,
.product-help-card__callback:focus-visible {
    border-color: #49a9d8;
    background: #49a9d8;
    color: #fff;
    outline: 0;
}

@media (min-width: 900px) {
    .product-help {
        grid-template-columns: minmax(0, 1.8fr) minmax(340px, .8fr);
        column-gap: 44px;
        row-gap: 28px;
        margin-top: 48px;
    }

    .product-help-card {
        padding: 34px 32px 30px;
        border-radius: 32px;
    }

    .product-help-card__person {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 18px;
    }

    .product-help-card__photo {
        width: 96px;
        height: auto;
    }
}

@media (max-width: 420px) {
    .product-help-card {
        padding: 22px 18px 18px;
        border-radius: 24px;
    }

    .product-help-card__person {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 13px;
    }

    .product-help-card__photo {
        width: 72px;
        height: auto;
    }

    .product-help-card__contacts {
        gap: 8px;
    }

    .product-help-card__phone,
    .product-help-card__messenger {
        min-height: 48px;
    }

    .product-help-card__messenger {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}

/* Home: keep the FAQ block at the same distance from reviews as reviews are from newest catalog. */
.home-reviews-panel + .product-help {
    margin-top: 88px;
}
