/* Общие стили публичных калькуляторов /calc/… (подключается после style.css) */
.calc { max-width: 960px; margin: 0 auto; padding: 28px 16px 40px; color: var(--ink, #0b1a33); font-size: 15px; line-height: 1.6; }
.calc h1 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 10px; }
.calc h2 { font-size: 22px; margin: 34px 0 12px; }
.calc .lead { font-size: 17px; color: #3f4a5c; margin: 0 0 20px; }
.calc-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-areas: "main out" "opts out"; grid-template-rows: auto 1fr; gap: 18px; align-items: start; }
.calc-main { grid-area: main; } .calc-out { grid-area: out; } .calc-opts { grid-area: opts; padding-top: 12px; }
.calc-form { background: var(--card, #fff); border: 1px solid var(--border, #e6e9f0); border-radius: 16px; padding: 18px 18px 14px; }
.calc-form label { display: block; font-size: 12px; font-weight: 600; color: #4b5563; margin: 0 0 4px; }
.calc-form .f { margin-bottom: 12px; }
.calc-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.calc-form input[type="number"], .calc-form input[type="text"], .calc-form input[type="search"], .calc-form input[type="date"] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dde3ee; border-radius: 10px; background: #fafbfd; font-size: 16px; font-family: inherit; color: var(--ink, #0b1a33); }
.calc-form input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.calc-form select { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 8px 10px; border: 1px solid #dde3ee; border-radius: 10px; background: #fafbfd; font-size: 13px; font-family: inherit; color: var(--ink, #0b1a33); }
.calc-form .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #4b5563; margin: 8px 0 0; cursor: pointer; }
.calc-form .chk input { margin-top: 3px; width: auto; }
.calc-form .hint { font-size: 11.5px; color: #8a97a8; margin-top: 3px; line-height: 1.4; }
.calc-form details { margin-top: 10px; font-size: 13px; }
.calc-form summary { cursor: pointer; color: #2563eb; font-weight: 600; list-style: none; }
.calc-form summary::-webkit-details-marker { display: none; }
.calc-form summary::before { content: '▸ '; color: #8a97a8; } .calc-form details[open] summary::before { content: '▾ '; }
.calc-out .big { background: linear-gradient(135deg, #0b1a33, #1e3a8a); color: #fff; border-radius: 18px; padding: 20px 22px; }
.calc-out .big .l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #93c5fd; }
.calc-out .big .v { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; line-height: 1.1; }
.calc-out .big .s { font-size: 13px; color: #dbe4f3; }
.calc-out .big { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.calc-out .big .big-main { flex: 1 1 240px; min-width: 0; }
.calc-out .big .big-side { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 18px; }
.calc-out .big .bk { line-height: 1.35; }
.calc-out .big .bl { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #93c5fd; margin-right: 4px; }
.calc-out .big .bk b { font-size: 16px; font-weight: 800; }
.calc-out .big .bs { display: block; color: #c7d4ea; font-size: 12px; }
.calc-note { font-size: 13px; color: #6b7a8f; margin-top: 10px; line-height: 1.5; }
.calc-tb { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a97a8; }
.calc-seg { display: inline-flex; background: #f1f4f8; border-radius: 10px; padding: 3px; }
.calc-seg button { white-space: nowrap; border: 0; background: transparent; border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 600; font-family: inherit; color: #41506b; cursor: pointer; text-transform: none; letter-spacing: 0; }
.calc-seg button.on { background: #fff; color: #0b1a33; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.calc-tw.m { max-height: 520px; overflow: auto; border: 1px solid var(--border, #e6e9f0); border-radius: 12px; margin-top: 8px; }
.calc-tw.m .calc-table { margin-top: 0; }
.calc-tw.m .calc-table th { position: sticky; top: 0; background: var(--card, #fff); z-index: 1; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.calc-table th, .calc-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--border, #e6e9f0); }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table th { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a97a8; }
.calc-table tr.hit td { font-weight: 700; color: #16a34a; }
.calc-table.nw td { white-space: nowrap; }
.calc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.calc-cta a { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; }
.calc-cta .p { background: #2563eb; color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.calc-cta .d { background: #fff; color: #0f766e; border: 1px solid #99f6e4; }
.calc-faq details { background: var(--card, #fff); border: 1px solid var(--border, #e6e9f0); border-radius: 12px; padding: 0 18px; margin-bottom: 8px; }
.calc-faq summary { cursor: pointer; padding: 13px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.calc-faq summary::-webkit-details-marker { display: none; }
.calc-faq summary::after { content: '+'; color: #8a97a8; font-size: 20px; font-weight: 400; }
.calc-faq details[open] summary::after { content: '–'; }
.calc-faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #3f4a5c; }
.calc .disc { font-size: 12px; color: #8a97a8; margin-top: 24px; line-height: 1.5; }
[data-theme="dark"] .calc .lead, [data-theme="dark"] .calc-faq p { color: #9fb0c8; }
[data-theme="dark"] .calc-form input, [data-theme="dark"] .calc-form select { background: #14203a; border-color: #2c3f63; color: #e6edf7; }
[data-theme="dark"] .calc-cta .d { background: #0f2a2a; color: #5eead4; border-color: #115e59; } [data-theme="dark"] .calc-seg { background: #14203a; } [data-theme="dark"] .calc-seg button { color: #9fb0c8; } [data-theme="dark"] .calc-seg button.on { background: #1e3a8a; color: #fff; }
[data-theme="dark"] .calc-form label, [data-theme="dark"] .calc-form .chk { color: #b8c4d6; }
/* --- общие элементы остальных калькуляторов --- */
.calc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.calc-kpi { background: var(--card, #fff); border: 1px solid var(--border, #e6e9f0); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.calc-kpi .l { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a97a8; }
.calc-kpi .v { font-size: 20px; font-weight: 800; margin-top: 2px; line-height: 1.15; overflow-wrap: anywhere; }
.calc-kpis.k4 .calc-kpi .v { font-size: 18px; }
.calc-kpi .s { font-size: 12px; color: #6b7a8f; line-height: 1.35; }
.calc-kpi .v.up { color: #16a34a; } .calc-kpi .v.down { color: #dc2626; }
.calc-kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .calc-kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-search { position: relative; }
.calc-search .dd { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--card, #fff); border: 1px solid var(--border, #e6e9f0); border-radius: 12px; box-shadow: 0 12px 30px rgba(11, 26, 51, .14); margin-top: 4px; max-height: 300px; overflow: auto; display: none; }
.calc-search .dd.on { display: block; }
.calc-search .dd button { display: flex; width: 100%; gap: 10px; align-items: baseline; border: 0; background: transparent; text-align: left; padding: 9px 12px; font-family: inherit; font-size: 14px; cursor: pointer; color: var(--ink, #0b1a33); }
.calc-search .dd button:hover, .calc-search .dd button.act { background: #f1f5fb; }
.calc-search .dd b { font-weight: 700; flex: 0 0 auto; } .calc-search .dd span { color: #6b7a8f; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .calc-search .dd i { font-style: normal; font-size: 11px; color: #8a97a8; margin-left: auto; flex: 0 0 auto; }
.calc-picked { display: flex; align-items: center; gap: 10px; background: #f1f5fb; border: 1px solid #dbe6f7; border-radius: 12px; padding: 9px 12px; margin: 8px 0 12px; font-size: 13px; }
.calc-picked b { font-size: 14px; } .calc-picked .x { margin-left: auto; border: 0; background: transparent; color: #6b7a8f; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.calc-picked .src { color: #6b7a8f; font-size: 12px; }
.calc-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.calc-tools button, .calc-tools a { border: 1px solid var(--border, #e6e9f0); background: var(--card, #fff); color: #41506b; border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.calc-tools button:hover, .calc-tools a:hover { border-color: #c7d9fb; color: #2563eb; }
.calc-tools .ok { color: #16a34a; border-color: #bbf7d0; }
.calc-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.calc-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.calc-info a, .calc-warn a { color: inherit; font-weight: 600; }
.calc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.calc-card { display: block; background: var(--card, #fff); border: 1px solid var(--border, #e6e9f0); border-radius: 16px; padding: 18px 18px 16px; text-decoration: none; color: var(--ink, #0b1a33); transition: border-color .15s, transform .15s; }
.calc-card:hover { border-color: #93c5fd; transform: translateY(-2px); }
.calc-card .ic { width: 38px; height: 38px; border-radius: 11px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.calc-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.calc-card p { margin: 0; font-size: 13.5px; color: #5b6a7d; line-height: 1.5; }
.calc-card .tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0f766e; background: #ccfbf1; border-radius: 6px; padding: 2px 7px; }
.calc-more { margin-top: 34px; }
.calc-more h2 { margin-top: 0; }
.calc-more .calc-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.calc-more .calc-card { padding: 14px 16px; } .calc-more .calc-card h3 { font-size: 14.5px; } .calc-more .calc-card p { font-size: 12.5px; }
.calc-login { background: linear-gradient(135deg, #0b1a33, #1e3a8a); color: #fff; border-radius: 16px; padding: 18px 20px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.calc-login a { color: #93c5fd; font-weight: 700; }
[data-theme="dark"] .calc-search .dd button:hover, [data-theme="dark"] .calc-search .dd button.act { background: #1e293b; }
[data-theme="dark"] .calc-picked { background: #14203a; border-color: #2c3f63; }
[data-theme="dark"] .calc-card .ic { background: #1e3a8a; color: #bfdbfe; }
[data-theme="dark"] .calc-card p, [data-theme="dark"] .calc-kpi .s { color: #9fb0c8; }
[data-theme="dark"] .calc-warn { background: #3b2a12; border-color: #7c5a1e; color: #fde68a; }
[data-theme="dark"] .calc-info { background: #14203a; border-color: #2c3f63; color: #bfdbfe; }
[data-theme="dark"] .calc-tools button, [data-theme="dark"] .calc-tools a { color: #b8c4d6; }
.calc-form .chk:has(input:disabled) { opacity: .55; cursor: default; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; grid-template-areas: "main" "out" "opts"; } .calc-opts { padding-top: 14px; } .calc-tw.m { max-height: 60vh; } .calc-table { font-size: 13px; } .calc-table td { white-space: nowrap; padding: 8px 6px; } .calc-tb { flex-wrap: wrap; } .calc h1 { font-size: 24px; } .calc-out .big .big-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; } .calc-cta a { width: 100%; justify-content: center; } .calc-kpis, .calc-kpis.k4, .calc-kpis.k3 { grid-template-columns: 1fr 1fr; } .calc-out .big .v { font-size: 28px; } }

@media (max-width: 1100px) { .calc-kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
