/* global React, Container, Section, SectionIdx, Button, useLang, t */ function Pricing() { useLang(); const tiers = t('pricing.tiers'); const rows = t('pricing.rows'); const yes = t('pricing.yes'); const no = t('pricing.no'); const cell = (val) => val === 'yes' ? {yes} : val === 'no' ? {no} : {val}; return (

{t('pricing.title')}

{t('pricing.lead')}

{/* Десктоп: спецификационная таблица */}
{t('pricing.param')}
{tiers.map((tr, i) => (
{tr.name}
{tr.price}
{tr.unit}
))} {rows.map((row, ri) => (
{row[0]}
{row[1].map((val, ci) => (
{cell(val)}
))}
))}
{/* Мобильное: стек карточек */}
{tiers.map((tr, ti) => (
{tr.name}
{tr.price}
{tr.unit}
{rows.map(([label, vals], ri) => { const v = vals[ti]; return (
{label} {v === 'yes' ? yes : v === 'no' ? no : v}
); })}
))}
); } function FAQ() { useLang(); const [open, setOpen] = React.useState(0); const items = t('faq.items'); return (

{t('faq.title')}

{t('faq.lead')}

{items.map((it, i) => { const isOpen = open === i; return (
{it.a}
); })}
); } window.Pricing = Pricing; window.FAQ = FAQ;