import{r as p,j as e,L as M}from"./vendor-react-BwKDLVNL.js";import{T as G}from"./ToolPageSEO-DBiY2uH6.js";import{T as q}from"./toolsMeta-CeuNOhcH.js";import{t as j,v as g,w as r,z as d,H as v,y as a,E as u,J as y,K as k,U as J,F as h,W as f,Y as K,I as _,a5 as Y,a6 as Z,Z as F,_ as S,$ as B,a0 as E,a1 as n,aa as z,B as Q}from"./index-4PWHNWf5.js";import"./vendor-dayjs-5tvLiZdS.js";import"./vendor-sentry-BncsBMgc.js";import{M as ee,a as se}from"./MarketingShell-BAIPYo8j.js";import{u as ae}from"./vendor-i18n-C6wqqoou.js";import{A as te}from"./arrow-left-CFAyPNnH.js";import{S as N}from"./shield-check-DRbHr__K.js";import{S as R}from"./shield-DiZTYJnu.js";import{T as w}from"./triangle-alert-C-vIbMHE.js";import"./vendor-query-D-sr233n.js";import"./vendor-antd-core-4y2ghozH.js";import"./zap-BR8fpIck.js";import"./globe-hDIdw7U2.js";import"./users-1HBFFtf4.js";import"./file-text-BokCHFLv.js";import"./SiteFooter-BRhqHJTy.js";import"./send-CwoGz6Hv.js";import"./building-2-DQ37wC4v.js";function re(s,o){return s==="sea"?o==="icc_a"?.0025:o==="icc_b"?.0015:.001:s==="rail"?.0015:s==="road"?.002:8e-4}function le(s,o,m,C){let i=re(s,o);return s==="sea"&&o==="icc_a"&&C==="elevated"&&(i=.004),m==="hazmat"&&(i+=5e-4),m==="perishable"&&(i+=8e-4),m==="oversize"&&(i+=3e-4),C==="high"&&(i+=.001),i}const V=3e3,ce=1.1,ie=s=>({icc_a:s("tools.insurance.iccDesc.icc_a","ICC(A) — «Все риски»: покрывает любые риски физической гибели или повреждения груза, кроме прямо исключённых (умысел, естественный износ, война, ядерные риски)."),icc_b:s("tools.insurance.iccDesc.icc_b","ICC(B) — «Частная авария»: покрывает пожар, взрыв, посадку на мель, смыв за борт, землетрясение, молнию, проникновение воды. Кражу и конденсат — не покрывает."),icc_c:s("tools.insurance.iccDesc.icc_c","ICC(C) — «Полная гибель»: только катастрофические риски — пожар, взрыв, кораблекрушение, столкновение судна. Частичные повреждения и кража не покрываются.")}),ne=new Intl.NumberFormat("ru-RU",{maximumFractionDigits:0}),P=s=>(s*100).toFixed(2)+"%";function x(s){return ne.format(Math.round(s))+" ₽"}function Fe(){const{t:s}=ae(),o=ie(s),[m,C]=p.useState("1000000"),[i,$]=p.useState("sea"),[I,D]=p.useState("general"),[l,U]=p.useState("icc_a"),[T,W]=p.useState("standard"),c=p.useMemo(()=>{const t=parseFloat(m.replace(/\s/g,""));if(isNaN(t)||t<=0)return null;const b=t*ce,O=le(i,l,I,T),A=b*O,X=Math.max(A,V),H=A<V;return{value:t,insuredAmount:b,rate:O,rawPremium:A,premium:X,minApplied:H}},[m,i,l,I,T]),L={sea:s("tools.insurance.transport.sea","Море"),rail:s("tools.insurance.transport.rail","Ж/Д"),road:s("tools.insurance.transport.road","Авто"),air:s("tools.insurance.transport.air","Авиа")};return e.jsxs(ee,{active:"tools",children:[e.jsx(G,{...q.insurance}),e.jsx(j,{py:"lg",bg:"surface",children:e.jsx(g,{size:"base",children:e.jsxs(r,{gap:6,children:[e.jsxs(M,{to:"/tools",className:"inline-flex items-center gap-1.5 text-sm text-text-muted hover:text-primary transition-colors w-fit",children:[e.jsx(te,{className:"h-4 w-4"}),s("tools.insurance.backLink","Все инструменты")]}),e.jsxs(r,{gap:4,className:"max-w-3xl",children:[e.jsx(d,{variant:"info",children:s("tools.insurance.hero.badge","Калькулятор · Страхование груза")}),e.jsx(v,{size:"h1",children:s("tools.insurance.hero.title","Калькулятор страхования груза")}),e.jsx(a,{variant:"lead",className:"max-w-2xl",children:s("tools.insurance.hero.lead","Рассчитайте страховую премию по условиям ICC(A), ICC(B) или ICC(C) для морских, ж/д, авто и авиа перевозок.")})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 max-w-3xl",children:[e.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-white px-4 py-3",children:[e.jsx(N,{className:"h-5 w-5 text-green-600 shrink-0 mt-0.5"}),e.jsxs(r,{gap:0,children:[e.jsx(a,{className:"text-sm font-semibold",children:s("tools.insurance.hero.fact1.title","До 2–4% стоимости")}),e.jsx(a,{variant:"muted",className:"text-xs",children:s("tools.insurance.hero.fact1.desc","Страховка стоит копейки — убыток может быть 100%")})]})]}),e.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-white px-4 py-3",children:[e.jsx(R,{className:"h-5 w-5 text-blue-600 shrink-0 mt-0.5"}),e.jsxs(r,{gap:0,children:[e.jsx(a,{className:"text-sm font-semibold",children:s("tools.insurance.hero.fact2.title","CIF/CIP — обязательно")}),e.jsx(a,{variant:"muted",className:"text-xs",children:s("tools.insurance.hero.fact2.desc","По Инкотермс CIP/CIF страховщик — продавец")})]})]}),e.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-white px-4 py-3",children:[e.jsx(w,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}),e.jsxs(r,{gap:0,children:[e.jsx(a,{className:"text-sm font-semibold",children:s("tools.insurance.hero.fact3.title","FOB/EXW — ваш риск")}),e.jsx(a,{variant:"muted",className:"text-xs",children:s("tools.insurance.hero.fact3.desc","При FOB или EXW страхуете груз самостоятельно")})]})]})]})]})})}),e.jsx(j,{py:"lg",bg:"base",children:e.jsx(g,{size:"base",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_400px] gap-8 items-start",children:[e.jsx(r,{gap:6,children:e.jsxs(u,{children:[e.jsxs(y,{children:[e.jsxs(k,{className:"flex items-center gap-2",children:[e.jsx(R,{className:"h-5 w-5 text-primary"}),s("tools.insurance.calc.title","Параметры груза и перевозки")]}),e.jsx(J,{children:s("tools.insurance.calc.description","Заполните поля для расчёта страховой премии")})]}),e.jsx(h,{children:e.jsxs(r,{gap:6,children:[e.jsxs(r,{gap:2,children:[e.jsx(f,{htmlFor:"cargo-value",children:s("tools.insurance.calc.cargoValue.label","Стоимость груза (CIF или FOB), руб.")}),e.jsxs("div",{className:"relative",children:[e.jsx(K,{id:"cargo-value",type:"number",min:1,step:1e4,placeholder:s("tools.insurance.calc.cargoValue.placeholder","например, 1 000 000"),value:m,onChange:t=>C(t.target.value),className:"pr-8"}),e.jsx("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs text-text-muted pointer-events-none",children:"₽"})]}),e.jsx(a,{variant:"muted",className:"text-xs",children:s("tools.insurance.calc.cargoValue.hint","Укажите полную стоимость товара с учётом фрахта до пункта назначения")})]}),e.jsx(_,{}),e.jsxs(r,{gap:3,children:[e.jsx(f,{children:s("tools.insurance.calc.transport.label","Вид транспорта")}),e.jsx(Y,{value:i,onValueChange:t=>$(t),className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:["sea","rail","road","air"].map(t=>e.jsxs("label",{htmlFor:`transport-${t}`,className:`flex items-center gap-2 cursor-pointer rounded-lg border px-3 py-2.5 text-sm transition-colors ${i===t?"border-primary bg-primary/5 text-primary font-medium":"border-border bg-white hover:border-primary/40 text-text"}`,children:[e.jsx(Z,{value:t,id:`transport-${t}`,className:"sr-only"}),L[t]]},t))})]}),e.jsxs(r,{gap:2,children:[e.jsx(f,{htmlFor:"cargo-type",children:s("tools.insurance.calc.cargoType.label","Тип груза")}),e.jsxs(F,{value:I,onValueChange:t=>D(t),children:[e.jsx(S,{id:"cargo-type",children:e.jsx(B,{placeholder:s("tools.insurance.calc.cargoType.placeholder","Выберите тип груза")})}),e.jsxs(E,{children:[e.jsx(n,{value:"general",children:s("tools.insurance.calc.cargoType.general","Генеральный груз")}),e.jsx(n,{value:"hazmat",children:s("tools.insurance.calc.cargoType.hazmat","Опасный груз (+0.05%)")}),e.jsx(n,{value:"perishable",children:s("tools.insurance.calc.cargoType.perishable","Скоропортящийся (+0.08%)")}),e.jsx(n,{value:"oversize",children:s("tools.insurance.calc.cargoType.oversize","Негабаритный (+0.03%)")})]})]})]}),e.jsxs(r,{gap:2,children:[e.jsx(f,{htmlFor:"icc-condition",children:s("tools.insurance.calc.icc.label","Условия страхования")}),e.jsxs(F,{value:l,onValueChange:t=>U(t),children:[e.jsx(S,{id:"icc-condition",children:e.jsx(B,{placeholder:s("tools.insurance.calc.icc.placeholder","Выберите условие")})}),e.jsxs(E,{children:[e.jsx(n,{value:"icc_a",children:s("tools.insurance.calc.icc.optA","ICC(A) — все риски")}),e.jsx(n,{value:"icc_b",children:s("tools.insurance.calc.icc.optB","ICC(B) — частная авария")}),e.jsx(n,{value:"icc_c",children:s("tools.insurance.calc.icc.optC","ICC(C) — полная гибель")})]})]}),e.jsx(a,{variant:"muted",className:"text-xs",children:o[l]})]}),e.jsxs(r,{gap:2,children:[e.jsx(f,{htmlFor:"route-risk",children:s("tools.insurance.calc.route.label","Маршрут риска")}),e.jsxs(F,{value:T,onValueChange:t=>W(t),children:[e.jsx(S,{id:"route-risk",children:e.jsx(B,{placeholder:s("tools.insurance.calc.route.placeholder","Выберите маршрут")})}),e.jsxs(E,{children:[e.jsx(n,{value:"standard",children:s("tools.insurance.calc.route.standard","Стандартный")}),e.jsx(n,{value:"elevated",children:s("tools.insurance.calc.route.elevated","Повышенный (пираты / сложная погода)")}),e.jsx(n,{value:"high",children:s("tools.insurance.calc.route.high","Высокий (+0.10%)")})]})]})]})]})})]})}),e.jsx("div",{className:"lg:sticky lg:top-6",children:c?e.jsxs(r,{gap:4,children:[e.jsxs(u,{className:"border-primary/30",children:[e.jsx(y,{className:"pb-3",children:e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[e.jsxs(k,{className:"flex items-center gap-2 text-primary",children:[e.jsx(N,{className:"h-5 w-5"}),s("tools.insurance.result.title","Страховая премия")]}),c.minApplied&&e.jsx(d,{variant:"warning",children:s("tools.insurance.result.minBadge","Мин. премия")})]})}),e.jsx(h,{children:e.jsxs(r,{gap:4,children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-4xl font-bold text-primary tabular-nums leading-none",children:x(c.premium)}),c.minApplied&&e.jsx(a,{variant:"muted",className:"text-xs mt-1",children:s("tools.insurance.result.minNote","Расчётная премия {{rawPremium}} — применена минимальная 3 000 ₽",{rawPremium:x(c.rawPremium)})})]}),e.jsx(_,{}),e.jsxs(r,{gap:3,children:[e.jsx(a,{className:"text-xs font-semibold uppercase tracking-wide text-text-muted",children:s("tools.insurance.result.formula.title","Расчёт (формула)")}),e.jsxs("div",{className:"rounded-lg bg-surface border border-border px-4 py-3 space-y-2",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs(a,{variant:"muted",className:"text-xs leading-snug",children:[s("tools.insurance.result.formula.insuredAmount","Страховая сумма"),e.jsx("br",{}),"= ",x(c.value)," × 1.10"]}),e.jsx(a,{className:"text-xs font-semibold tabular-nums shrink-0",children:x(c.insuredAmount)})]}),e.jsx("div",{className:"h-px bg-border"}),e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx(a,{variant:"muted",className:"text-xs leading-snug",children:s("tools.insurance.result.formula.rate","Ставка ({{transport}}, {{iccCode}})",{transport:L[i],iccCode:l.replace("_","(").toUpperCase()})}),e.jsx(a,{className:"text-xs font-semibold tabular-nums shrink-0",children:P(c.rate)})]}),e.jsx("div",{className:"h-px bg-border"}),e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs(a,{variant:"muted",className:"text-xs leading-snug",children:[s("tools.insurance.result.formula.premium","Страховая премия"),e.jsx("br",{}),"= ",x(c.insuredAmount)," ×"," ",P(c.rate)]}),e.jsx(a,{className:"text-xs font-bold tabular-nums shrink-0 text-primary",children:x(c.rawPremium)})]}),c.minApplied&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-px bg-border"}),e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx(a,{variant:"muted",className:"text-xs",children:s("tools.insurance.result.formula.minPremium","Минимальная премия")}),e.jsx(a,{className:"text-xs font-bold tabular-nums shrink-0 text-primary",children:"3 000 ₽"})]})]})]})]}),e.jsx(_,{}),e.jsxs(r,{gap:2,children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(a,{variant:"muted",className:"text-sm",children:s("tools.insurance.result.metric.insuredAmount","Страховая сумма")}),e.jsx(a,{className:"text-sm font-semibold tabular-nums",children:x(c.insuredAmount)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(a,{variant:"muted",className:"text-sm",children:s("tools.insurance.result.metric.rate","Применяемая ставка")}),e.jsx(a,{className:"text-sm font-semibold tabular-nums",children:P(c.rate)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(a,{variant:"muted",className:"text-sm",children:s("tools.insurance.result.metric.premium","Итоговая премия")}),e.jsx(a,{className:"text-sm font-bold tabular-nums text-primary",children:x(c.premium)})]})]})]})})]}),e.jsx(u,{className:l==="icc_a"?"bg-green-50 border-green-200":l==="icc_b"?"bg-blue-50 border-blue-200":"bg-amber-50 border-amber-200",children:e.jsx(h,{className:"pt-4 pb-4",children:e.jsxs(r,{gap:2,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(d,{variant:l==="icc_a"?"success":l==="icc_b"?"info":"warning",children:l==="icc_a"?s("tools.insurance.iccLabel.allRisks","Все риски"):l==="icc_b"?s("tools.insurance.iccLabel.particularAverage","Частная авария"):s("tools.insurance.iccLabel.totalLoss","Полная гибель")}),e.jsx(a,{className:`text-sm font-semibold ${l==="icc_a"?"text-green-800":l==="icc_b"?"text-blue-800":"text-amber-800"}`,children:l==="icc_a"?"ICC(A)":l==="icc_b"?"ICC(B)":"ICC(C)"})]}),e.jsx(a,{className:`text-xs ${l==="icc_a"?"text-green-700":l==="icc_b"?"text-blue-700":"text-amber-800"}`,children:o[l]})]})})}),e.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-border bg-surface px-3 py-2.5",children:[e.jsx(z,{className:"h-4 w-4 text-text-muted shrink-0 mt-0.5"}),e.jsx(a,{variant:"muted",className:"text-xs",children:s("tools.insurance.result.disclaimer","Расчёт ориентировочный. Фактические ставки зависят от страховщика, деталей маршрута и результатов сюрвея.")})]}),e.jsx(Q,{variant:"default",className:"w-full",asChild:!0,children:e.jsx(M,{to:"/",children:s("tools.insurance.result.ctaButton","Рассчитать стоимость перевозки")})})]}):e.jsx(u,{className:"border-dashed",children:e.jsx(h,{className:"py-16",children:e.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[e.jsx("div",{className:"h-16 w-16 rounded-full bg-slate-100 flex items-center justify-center",children:e.jsx(R,{className:"h-8 w-8 text-slate-400"})}),e.jsxs(r,{gap:1,align:"center",children:[e.jsx(a,{className:"font-semibold text-slate-700",children:s("tools.insurance.empty.title","Введите стоимость груза")}),e.jsx(a,{variant:"muted",className:"text-sm",children:s("tools.insurance.empty.subtitle","Укажите сумму и выберите параметры слева")})]})]})})})})]})})}),e.jsx(j,{py:"lg",bg:"surface",children:e.jsx(g,{size:"base",children:e.jsxs(r,{gap:6,children:[e.jsxs(r,{gap:2,className:"max-w-2xl",children:[e.jsx(v,{size:"h2",children:s("tools.insurance.iccTable.heading","Условия ICC — что покрывает, что нет")}),e.jsx(a,{variant:"muted",children:s("tools.insurance.iccTable.subtitle","Institute Cargo Clauses (ICC) — международный стандарт условий страхования грузов Института лондонских страховщиков (ILU).")})]}),e.jsx("div",{className:"rounded-xl border border-border bg-white overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm min-w-[600px]",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-border bg-surface",children:[e.jsx("th",{className:"text-left px-4 py-3 text-xs font-semibold uppercase tracking-wide text-text-muted w-[30%]",children:s("tools.insurance.iccTable.col.risk","Риск / Событие")}),e.jsx("th",{className:"text-center px-4 py-3 text-xs font-semibold uppercase tracking-wide text-green-700 w-[23%]",children:s("tools.insurance.iccTable.col.iccA","ICC(A) — Все риски")}),e.jsx("th",{className:"text-center px-4 py-3 text-xs font-semibold uppercase tracking-wide text-blue-700 w-[23%]",children:s("tools.insurance.iccTable.col.iccB","ICC(B) — Частная авария")}),e.jsx("th",{className:"text-center px-4 py-3 text-xs font-semibold uppercase tracking-wide text-amber-700 w-[24%]",children:s("tools.insurance.iccTable.col.iccC","ICC(C) — Полная гибель")})]})}),e.jsx("tbody",{children:[{key:"fire",risk:"Пожар или взрыв",a:!0,b:!0,c:!0},{key:"shipwreck",risk:"Кораблекрушение, посадка на мель",a:!0,b:!0,c:!0},{key:"collision",risk:"Столкновение с объектом",a:!0,b:!0,c:!0},{key:"loadingAccident",risk:"Авария при погрузке / выгрузке",a:!0,b:!0,c:!0},{key:"earthquake",risk:"Землетрясение, молния, вулкан",a:!0,b:!0,c:!1},{key:"washOverboard",risk:"Смыв за борт",a:!0,b:!0,c:!1},{key:"waterIngress",risk:"Проникновение воды в трюм",a:!0,b:!0,c:!1},{key:"theft",risk:"Кража, пропажа части груза",a:!0,b:!1,c:!1},{key:"waterDamage",risk:"Повреждение водой / конденсатом",a:!0,b:!1,c:!1},{key:"breakage",risk:"Бой, вмятины, царапины",a:!0,b:!1,c:!1},{key:"warStrikes",risk:"Война, забастовки (доп. полис)",a:!1,b:!1,c:!1},{key:"wearTear",risk:"Естественный износ, утечка",a:!1,b:!1,c:!1}].map((t,b)=>e.jsxs("tr",{className:`border-b border-border last:border-0 transition-colors ${b%2===0?"":"bg-surface/40"}`,children:[e.jsx("td",{className:"px-4 py-3 text-sm font-medium",children:s(`tools.insurance.iccRisk.${t.key}`,t.risk)}),e.jsx("td",{className:"px-4 py-3 text-center",children:t.a?e.jsx("span",{className:"text-green-600 font-bold text-base",children:"✓"}):e.jsx("span",{className:"text-red-400 font-bold text-base",children:"✗"})}),e.jsx("td",{className:"px-4 py-3 text-center",children:t.b?e.jsx("span",{className:"text-green-600 font-bold text-base",children:"✓"}):e.jsx("span",{className:"text-red-400 font-bold text-base",children:"✗"})}),e.jsx("td",{className:"px-4 py-3 text-center",children:t.c?e.jsx("span",{className:"text-green-600 font-bold text-base",children:"✓"}):e.jsx("span",{className:"text-red-400 font-bold text-base",children:"✗"})})]},t.key))})]})}),e.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-border bg-white px-4 py-3",children:[e.jsx(z,{className:"h-4 w-4 text-text-muted shrink-0 mt-0.5"}),e.jsx(a,{variant:"muted",className:"text-xs",children:s("tools.insurance.iccTable.footnote","Риски войны и забастовок можно застраховать отдельным полисом (Institute War Clauses / Strike Clauses). Для авиа применяются аналогичные условия IAC(A/B/C).")})]})]})})}),e.jsx(j,{py:"lg",bg:"base",children:e.jsx(g,{size:"base",children:e.jsxs(r,{gap:6,children:[e.jsxs(r,{gap:2,className:"max-w-2xl",children:[e.jsx(v,{size:"h2",children:s("tools.insurance.rateTable.heading","Таблица базовых ставок")}),e.jsx(a,{variant:"muted",children:s("tools.insurance.rateTable.subtitle","Ставки в % от страховой суммы (стоимость × 110%). Указаны базовые значения без учёта надбавок за тип груза и маршрут.")})]}),e.jsx("div",{className:"rounded-xl border border-border bg-white overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm min-w-[500px]",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-border bg-surface",children:[e.jsx("th",{className:"text-left px-4 py-3 text-xs font-semibold uppercase tracking-wide text-text-muted",children:s("tools.insurance.rateTable.col.transport","Транспорт")}),e.jsx("th",{className:"text-center px-4 py-3 text-xs font-semibold uppercase tracking-wide text-text-muted",children:"ICC(A)"}),e.jsx("th",{className:"text-center px-4 py-3 text-xs font-semibold uppercase tracking-wide text-text-muted",children:"ICC(B)"}),e.jsx("th",{className:"text-center px-4 py-3 text-xs font-semibold uppercase tracking-wide text-text-muted",children:"ICC(C)"})]})}),e.jsx("tbody",{children:[{key:"seaStandard",label:"Море (стандартный маршрут)",a:"0.25%",b:"0.15%",c:"0.10%"},{key:"seaElevated",label:"Море (повышенный риск)",a:"0.40%",b:"—",c:"—"},{key:"rail",label:"Железная дорога",a:"0.15%",b:"—",c:"—"},{key:"road",label:"Автомобильный",a:"0.20%",b:"—",c:"—"},{key:"air",label:"Авиа",a:"0.08%",b:"—",c:"—"}].map((t,b)=>e.jsxs("tr",{className:`border-b border-border last:border-0 ${b%2===0?"":"bg-surface/40"}`,children:[e.jsx("td",{className:"px-4 py-3 font-medium",children:s(`tools.insurance.rateRow.${t.key}`,t.label)}),e.jsx("td",{className:"px-4 py-3 text-center tabular-nums",children:e.jsx(d,{variant:"success",children:t.a})}),e.jsx("td",{className:"px-4 py-3 text-center tabular-nums",children:t.b!=="—"?e.jsx(d,{variant:"info",children:t.b}):e.jsx("span",{className:"text-text-muted",children:"—"})}),e.jsx("td",{className:"px-4 py-3 text-center tabular-nums",children:t.c!=="—"?e.jsx(d,{variant:"warning",children:t.c}):e.jsx("span",{className:"text-text-muted",children:"—"})})]},t.key))}),e.jsx("tfoot",{children:e.jsx("tr",{className:"border-t border-border bg-surface",children:e.jsx("td",{colSpan:4,className:"px-4 py-3",children:e.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-1 text-xs text-text-muted",children:[e.jsx("span",{children:s("tools.insurance.rateTable.surcharge.hazmat","+0.05% опасный груз")}),e.jsx("span",{children:s("tools.insurance.rateTable.surcharge.perishable","+0.08% скоропортящийся")}),e.jsx("span",{children:s("tools.insurance.rateTable.surcharge.oversize","+0.03% негабаритный")}),e.jsx("span",{children:s("tools.insurance.rateTable.surcharge.highRisk","+0.10% высокий риск маршрута")})]})})})})]})})]})})}),e.jsx(j,{py:"lg",bg:"surface",children:e.jsx(g,{size:"base",children:e.jsxs(r,{gap:6,children:[e.jsxs(r,{gap:2,className:"max-w-2xl",children:[e.jsx(v,{size:"h2",children:s("tools.insurance.incoterms.heading","Когда страховать обязательно")}),e.jsx(a,{variant:"muted",children:s("tools.insurance.incoterms.subtitle","Обязанность страховать груз зависит от условий Инкотермс в договоре поставки.")})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(u,{className:"bg-green-50 border-green-200",children:[e.jsx(y,{className:"pb-2",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(d,{variant:"success",children:"CIP / CIF"}),e.jsx(k,{className:"text-base text-green-800",children:s("tools.insurance.incoterms.cipCif.title","Страхует продавец")})]})}),e.jsx(h,{children:e.jsxs(r,{gap:3,children:[e.jsxs(a,{className:"text-sm text-green-800",children:[s("tools.insurance.incoterms.cipCif.body1","По условиям")," ",e.jsx("strong",{children:"CIP"})," ",s("tools.insurance.incoterms.cipCif.body2","(все виды транспорта) и")," ",e.jsx("strong",{children:"CIF"})," ",s("tools.insurance.incoterms.cipCif.body3","(морской фрахт) продавец обязан застраховать груз в пользу покупателя минимум по ICC(C) или ICC(A) для CIP.")]}),e.jsxs("ul",{className:"space-y-1.5",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm text-green-700",children:[e.jsx(N,{className:"h-4 w-4 shrink-0 mt-0.5"}),s("tools.insurance.incoterms.cipCif.item1","Страховка включена в цену товара")]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-green-700",children:[e.jsx(N,{className:"h-4 w-4 shrink-0 mt-0.5"}),s("tools.insurance.incoterms.cipCif.item2","Полис выписывается на покупателя")]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-green-700",children:[e.jsx(N,{className:"h-4 w-4 shrink-0 mt-0.5"}),s("tools.insurance.incoterms.cipCif.item3","Риск переходит в момент отгрузки")]})]})]})})]}),e.jsxs(u,{className:"bg-amber-50 border-amber-200",children:[e.jsx(y,{className:"pb-2",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(d,{variant:"warning",children:"FOB / EXW / FCA"}),e.jsx(k,{className:"text-base text-amber-800",children:s("tools.insurance.incoterms.fobExw.title","Страхует покупатель")})]})}),e.jsx(h,{children:e.jsxs(r,{gap:3,children:[e.jsxs(a,{className:"text-sm text-amber-800",children:[s("tools.insurance.incoterms.fobExw.body1","При")," ",e.jsx("strong",{children:"FOB"}),", ",e.jsx("strong",{children:"EXW"})," ",s("tools.insurance.incoterms.fobExw.body2","и")," ",e.jsx("strong",{children:"FCA"})," ",s("tools.insurance.incoterms.fobExw.body3","продавец не обязан страховать груз. Если вы (покупатель) не оформили полис — риск потери лежит на вас с момента отгрузки.")]}),e.jsxs("ul",{className:"space-y-1.5",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm text-amber-700",children:[e.jsx(w,{className:"h-4 w-4 shrink-0 mt-0.5"}),s("tools.insurance.incoterms.fobExw.item1","Страхование — ваша ответственность")]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-amber-700",children:[e.jsx(w,{className:"h-4 w-4 shrink-0 mt-0.5"}),s("tools.insurance.incoterms.fobExw.item2","Груз без полиса = незащищённый риск")]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-amber-700",children:[e.jsx(w,{className:"h-4 w-4 shrink-0 mt-0.5"}),s("tools.insurance.incoterms.fobExw.item3","Рекомендуем минимум ICC(B) или ICC(A)")]})]})]})})]})]}),e.jsx(u,{className:"bg-blue-50 border-blue-200",children:e.jsx(h,{className:"pt-4 pb-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(z,{className:"h-5 w-5 text-blue-600 shrink-0 mt-0.5"}),e.jsxs(r,{gap:1,children:[e.jsx(a,{className:"text-sm font-semibold text-blue-800",children:s("tools.insurance.advice.title","Совет: страхуйте всегда — даже если продавец застраховал по ICC(C)")}),e.jsx(a,{className:"text-sm text-blue-700",children:s("tools.insurance.advice.body","ICC(C) покрывает только катастрофические риски. Кражу, повреждение водой и бой при перегрузке оно не возмещает. Доплата за апгрейд до ICC(A) составляет обычно 0.10–0.15% от страховой суммы — это дешевле, чем разбираться с потерями.")})]})]})})})]})})}),e.jsx(se,{title:s("tools.insurance.cta.title","Рассчитайте стоимость перевозки с учётом страховки"),description:s("tools.insurance.cta.description","Avalog подбирает оптимальный маршрут и помогает оформить страховой полис на груз."),ctaLabel:s("tools.insurance.cta.label","Рассчитать доставку"),ctaTo:"/calculator"})]})}export{Fe as default};