/* Калькулятор растаможки — templates/calc-customs.php only */
.cc{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);border-radius:20px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.cc__form{background:#fff;padding:40px}
.cc__form .calc__tabs{margin-top:0}
.cc__hint{margin:12px 0 0;font-size:14px;color:var(--mute);max-width:60ch}
.cc__presets{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:24px}
.cc__presets>span{font-size:14px;color:var(--mute);margin-right:4px}
.cc__presets .chip{padding:8px 14px;font-size:13px}
.cc__presets .chip.is-on{background:var(--ink);color:#fff;box-shadow:none}
.cc__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 20px;margin-top:28px}
.cc__f{display:flex;flex-direction:column;gap:8px;min-width:0}
.cc__f[hidden],.cc__check[hidden]{display:none}
.cc__f--wide{grid-column:1/-1}
.cc__f>span:first-child,.cc__f>span:first-child label{font-size:14px;color:var(--mute)}
.cc__f small{font-size:13px;color:var(--faint)}
.cc__f input[type=text],.cc__f select{width:100%;height:52px;border:0;border-radius:12px;background:var(--bg);padding:0 16px;font:450 16px var(--sans);color:var(--ink);outline:none;min-width:0}
.cc__f select{appearance:none;-webkit-appearance:none;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A707B' stroke-width='1.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px;padding-right:40px;cursor:pointer;text-overflow:ellipsis}
.cc__f input:focus-visible,.cc__f select:focus-visible{box-shadow:0 0 0 2px var(--accent)}
.cc__pair{display:flex;gap:8px}
.cc__pair input{flex:1}
.cc__pair select{width:auto;flex:0 0 140px}
.cc__unit{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:var(--bg);flex:0 0 auto}
.cc__unit button{height:44px;padding:0 14px;border:0;border-radius:9px;background:none;font:500 14px var(--sans);color:var(--mute);cursor:pointer}
.cc__unit button.is-on{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(14,17,22,.1)}
.cc__check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink-2);cursor:pointer;line-height:1.45}
.cc__check input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent);flex:0 0 auto}

.cc__result{background:var(--graphite);color:#fff;padding:40px;display:flex;flex-direction:column}
.cc__result>small{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.cc__result>b{font-size:clamp(36px,3.8vw,56px);font-weight:300;letter-spacing:-.04em;margin-top:10px;line-height:1}
.cc__rows{display:grid;gap:0;margin:22px 0 0;font-size:15px}
.cc__rows div{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.cc__rows dt{color:rgba(255,255,255,.85);min-width:0}
.cc__rows dt small{display:block;margin-top:3px;font-size:12.5px;line-height:1.4;color:rgba(255,255,255,.45);letter-spacing:0;text-transform:none}
.cc__rows dd{margin:0;font-weight:500;white-space:nowrap}
.cc__rows .cc__sum{border-bottom:0;padding-top:14px}
.cc__rows .cc__sum dd{font-size:17px}
.cc__extra,.cc__warn{margin:14px 0 0;font-size:14px;line-height:1.5;color:rgba(255,255,255,.7)}
.cc__extra b{color:#fff;font-weight:500}
.cc__warn{color:#ffb4a8}
.cc__pref{margin-top:14px;padding:14px 16px;border-radius:12px;background:rgba(255,255,255,.05);font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.7)}
.cc__pref[hidden],.cc__pref p[hidden]{display:none}
.cc__pref ul{margin:8px 0 0;padding-left:18px}
.cc__result .btn{align-self:flex-start;margin-top:24px}
.cc__note{margin:16px 0 0;font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.45)}

.cc__text{margin-inline:auto}
.cc__table,.prose .cc__table{min-width:0;width:100%;max-width:520px;border-collapse:collapse;margin:0 0 18px;font-size:16px}
.cc__table th,.cc__table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line)}
.cc__table th{font-weight:500;color:var(--mute);font-size:14px}
.cc__table td:last-child,.cc__table th:last-child{text-align:right;white-space:nowrap}
.cc__src{font-size:14px;color:var(--mute)}

@media (max-width:1024px){
  .cc{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .cc__form,.cc__result{padding:24px 18px}
  .cc__grid{grid-template-columns:minmax(0,1fr)}
  .cc__form .calc__tabs{display:flex;width:100%}
  .cc__form .calc__tabs button{flex:1;padding:0 10px}
  .cc__pair select{flex-basis:118px}
  .cc__rows dd{font-size:14px}
}
