/* DediGermany tools (/tools/): calculator layout on top of site.css */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.tool > .form { margin: 0; }
.tool .form h2 { font-size: 1.5rem; margin-top: 0; }
.tool .field { margin-bottom: 14px; }
.tool .field input, .tool .field select { width: 100%; }
.tool [hidden], .t-mail [hidden] { display: none !important; }
.tool .field-check input { width: 20px; height: 20px; flex: none; }
.tool .field-check label { flex: 1; }
.tool .field .hint { color: var(--steel); font-size: .86rem; line-height: 1.4; }
.t-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.t-inline3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.t-seg, .field.t-seg { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.t-seg legend { float: left; width: 100%; font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.t-seg label { position: relative; }
.t-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t-seg label > span { display: inline-block; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: .92rem; cursor: pointer; background: var(--white); }
.t-seg input:checked + span { background: var(--ink); color: var(--white); }
.t-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

.t-out { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--signal); border-radius: 0 0 var(--r-md) var(--r-md); padding: clamp(18px, 3vw, 28px); min-height: 200px; }
.t-out h2, .t-out h3 { margin-top: 0; }
.t-out h3 { font: 700 1.3rem/1.2 var(--f-cond); margin: 18px 0 8px; }
.t-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.t-kpi { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-kpi-l { font-size: .82rem; color: var(--steel); }
.t-kpi-v { font: 700 1.9rem/1.1 var(--f-cond); overflow-wrap: anywhere; }
.t-kpi-s { font-size: .82rem; color: var(--ink-2); }
.t-kpi-v.is-long { font-size: 1.4rem; }
.t-kpi-v.is-xlong { font-size: 1.15rem; overflow-wrap: normal; word-break: keep-all; }
.t-kpi.is-main { background: var(--ink); color: var(--white); border-color: var(--ink); }
.t-kpi.is-main .t-kpi-l, .t-kpi.is-main .t-kpi-s { color: #C9CED1; }
.t-kpi.is-main .t-kpi-v { color: var(--signal); }
.t-dl { margin: 0 0 12px; border-top: 1px solid var(--rule); }
.t-dl div { display: grid; grid-template-columns: minmax(8em, 40%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.t-dl dt { color: var(--steel); }
.t-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.t-bar { display: flex; height: 26px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--rule); background: var(--panel); margin: 6px 0 4px; }
.t-bar i { display: block; height: 100%; }
.t-bar .b1 { background: var(--ink); } .t-bar .b2 { background: var(--signal); } .t-bar .b3 { background: #8A949A; } .t-bar .b4 { background: #C9CED1; }
.t-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-2); margin: 0 0 12px; padding: 0; list-style: none; }
.t-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--c, var(--ink)); }
.t-disks { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 12px; }
.t-disk { width: 26px; height: 34px; border-radius: 3px; border: 1px solid var(--ink); background: var(--ink); position: relative; }
.t-disk.p { background: var(--signal); border-color: var(--signal-dk); }
.t-disk.s { background: #C9CED1; border-color: #8A949A; }
.t-disk::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); }
.t-ok { color: #1B5E2A; font-weight: 600; } .t-warn { color: #8A5A00; font-weight: 600; } .t-bad { color: #7A1A12; font-weight: 600; }
.t-err { color: #7A1A12; font-weight: 600; }
.t-note { color: var(--steel); font-size: .88rem; margin: 10px 0 0; }
.t-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--white); }
.t-table th, .t-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.t-table thead th { color: var(--steel); font-weight: 600; background: var(--panel); }
.t-table td.n, .t-table th.n { text-align: right; white-space: nowrap; }
.t-table tr.is-best td { background: #FFFBEA; font-weight: 600; }

#tool-plans { margin-top: clamp(32px, 4vw, 48px); }
#tool-plans > h2 { margin: 0 0 16px; }
#tool-plans h2 { font-size: 1.7rem; }
.t-plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.t-plan { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.t-plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.t-plan-name { font: 700 1.35rem/1.1 var(--f-cond); text-decoration: none; }
.t-plan-name:hover { text-decoration: underline; }
.t-plan-price { white-space: nowrap; font-size: .9rem; }
.t-plan-price b { font: 700 1.5rem/1 var(--f-cond); }
.t-plan-price small { color: var(--steel); }
.t-plan-spec { margin: 0; font-size: .9rem; color: var(--ink-2); }
.t-plan-why { margin: 0; font-size: .88rem; color: #1B5E2A; }
.t-plan-act { display: flex; gap: 8px; margin-top: auto; }

.t-mail { padding-top: 0; }
.t-mail-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: start;
  background: var(--white); border: 1px solid var(--rule); border-left: 6px solid var(--signal); border-radius: var(--r-md); padding: clamp(20px, 3vw, 34px); }
.t-mail-intro h2 { font-size: 1.8rem; margin: 4px 0 10px; }
.t-mail-intro p { margin: 0; color: var(--ink-2); }
.t-eyebrow { font: 600 .8rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.t-mail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.t-mail-fields .field { margin-bottom: 12px; }
.t-mail-fields .field input:not([type=checkbox]) { width: 100%; }
.t-mail-fields .field-check input { width: 20px; height: 20px; flex: none; }
.t-mail-fields .btn { margin-top: 6px; }

.t-article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.t-article-main > :first-child { margin-top: 0; }
.t-article-main { max-width: 760px; }
.t-aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.t-aside-card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 0 0 var(--r-md) var(--r-md); padding: 20px 22px; }
.t-aside-card h2 { font-size: 1.35rem; margin: 0 0 10px; }
.t-aside-card ul { list-style: none; margin: 0 0 12px; padding: 0; }
.t-aside-card li { border-top: 1px solid var(--rule); }
.t-aside-card li a { display: block; padding: 11px 0; text-decoration: none; }
.t-aside-card li b { display: block; font-weight: 600; }
.t-aside-card li span { display: block; font-size: .86rem; color: var(--steel); line-height: 1.4; margin-top: 2px; }
.t-aside-card li a:hover b { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.t-aside-all { font-weight: 600; text-decoration: none; }
.t-aside-dark { background: var(--ink); color: var(--white); border-color: var(--ink); border-top-color: var(--signal); }
.t-aside-dark h2 { color: var(--white); }
.t-aside-dark p { color: #C9CED1; margin: 0 0 14px; font-size: .95rem; }

.t-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.t-steps > li { counter-increment: s; }
.t-q { margin: 0 0 16px; border: 0; padding: 0; }
.t-q legend { font: 700 1.15rem/1.2 var(--f-cond); margin-bottom: 8px; padding: 0; }
.t-q legend::before { content: counter(s) ". "; color: var(--steel); }

.t-vms { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.t-vms th { font-size: .8rem; color: var(--steel); font-weight: 600; text-align: left; padding: 0 4px 4px; }
.t-vms td { padding: 3px 4px; }
.t-vms input { width: 100%; min-width: 0; padding: 8px 8px; border: 1px solid var(--rule); border-radius: var(--r-sm); font: inherit; background: var(--white); }
.t-vms .t-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--steel); padding: 4px 6px; }

.t-speed { display: grid; gap: 12px; }
.t-loc { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; }
.t-loc h3 { margin: 0; font: 700 1.3rem/1.1 var(--f-cond); }
.t-loc .t-ms { font: 700 2rem/1 var(--f-cond); text-align: right; }
.t-loc .t-files { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--steel); }
.t-loc .t-files a { color: var(--ink); }

.tools-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.tools-grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 0 0 var(--r-md) var(--r-md); text-decoration: none; }
.tools-grid a:hover { border-top-color: var(--signal); }
.tools-grid h2 { font: 700 1.45rem/1.1 var(--f-cond); margin: 0; }
.tools-grid p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tools-grid .t-go { margin-top: auto; font-weight: 600; }

@media (max-width: 860px) {
  .tool { grid-template-columns: 1fr; }
  .t-mail-card, .t-article { grid-template-columns: 1fr; }
  .t-aside { position: static; }
}
@media (max-width: 480px) {
  .t-mail-row { grid-template-columns: 1fr; }
  .t-inline, .t-inline3 { grid-template-columns: 1fr; }
  .t-dl div { grid-template-columns: 1fr; gap: 2px; }
}

.tool.tool-stack { grid-template-columns: 1fr; }
.tool-stack > .form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 18px; align-items: start; }
.tool-stack > .form h2 { grid-column: 1 / -1; }
.tool-stack > .form .t-inline { display: contents; }
