@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:400;src:url(/kalkulyator/assets/manrope-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:400;src:url(/kalkulyator/assets/manrope-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:600;src:url(/kalkulyator/assets/manrope-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:600;src:url(/kalkulyator/assets/manrope-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:700;src:url(/kalkulyator/assets/manrope-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:700;src:url(/kalkulyator/assets/manrope-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:800;src:url(/kalkulyator/assets/manrope-cyrillic-800-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:800;src:url(/kalkulyator/assets/manrope-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Калькулятор юнит-экономики — стиль сайта «Решение» */
:root {
  color-scheme: dark;
  --bg: #0E0E10; --s1: #16161A; --s2: #1D1D22; --line: #2A2A31; --line-2: #3A3A43;
  --text: #F2EEE8; --mute: #9A968F; --dim: #6E6B66;
  --acc: #8B5CF6; --acc-2: #A78BFA; --up: #4ADE80; --down: #F87171;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: clamp(16px, 5vw, 56px); --barh: 64px;
  --grad: linear-gradient(90deg, #F29C0B 0%, #EA4448 32%, #EA26A6 64%, #CB2CD6 100%);
  --ease: cubic-bezier(.16, .84, .24, 1);
}
*, *::before, *::after { box-sizing: border-box }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px }
body { margin: 0; background: radial-gradient(1200px 600px at 85% -10%, #8B5CF61f, transparent 60%), radial-gradient(900px 500px at -10% 20%, #EA26A614, transparent 60%), var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip }
a { color: inherit }
svg { display: block }
[hidden] { display: none !important }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 6px }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0 }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; line-height: 1.12 }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut) }
.box { background: var(--s1); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line) }

/* шапка */
.bar { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: #0E0E10e0; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line) }
.bar-in { display: flex; align-items: center; gap: 24px; height: var(--barh) }
.logo { display: flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; flex: none }
.logo-mark { width: 27px; height: 17px; overflow: visible }
.logo-word { width: 118px; height: 21px; color: var(--text) }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none }
.nav::-webkit-scrollbar { display: none }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--mute); text-decoration: none; font-size: 15px; white-space: nowrap }
.nav a:hover { color: var(--text); background: var(--s2) }
.nav a[aria-current] { color: var(--text); background: #8B5CF626; box-shadow: inset 0 0 0 1px #8B5CF655 }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #8B5CF6, #B03FE0 60%, #CB2CD6); background-size: 140% 100%; color: #fff; font: 700 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-position .5s var(--ease), box-shadow .3s }
.btn:hover { background-position: 100% 0; box-shadow: 0 12px 32px -12px #CB2CD6aa }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 10px }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2) }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none }
.link { background: none; border: 0; padding: 6px 0; color: var(--mute); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.link:hover { color: var(--text) }

/* заголовок страницы */
main { padding: 22px 0 64px }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--dim); margin-bottom: 18px }
.crumbs a { color: var(--mute); text-decoration: none } .crumbs a:hover { color: var(--text) }
h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; max-width: 22ch }
.lead { margin-top: 14px; max-width: 62ch; color: #CFCAC2; font-size: clamp(16px, 1.4vw, 18px) }
.upd { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; background: #8B5CF61f; box-shadow: inset 0 0 0 1px #8B5CF655; font-size: 14px; font-weight: 600; color: #E4DAFF }
.upd i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px #4ADE8026 }

/* калькулятор */
.calc { margin-top: 26px }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 6px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); position: sticky; top: calc(var(--barh) + env(safe-area-inset-top, 0px) + 8px); z-index: 20 }
.tabs button { display: grid; gap: 2px; padding: 12px 10px; border: 0; border-radius: 13px; background: transparent; color: var(--mute); font: inherit; cursor: pointer; text-align: center; transition: background .2s, color .2s }
.tabs button b { font-size: 17px; color: var(--text); font-weight: 700 }
.tabs button small { font-size: 12.5px }
.tabs button:hover { background: var(--s2) }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, #8B5CF6, #B03FE0 60%, #CB2CD6); color: #EFE7FF; box-shadow: 0 12px 30px -14px #CB2CD6 }
.tabs button[aria-selected="true"] b { color: #fff }
.nojs { margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: #2A1216; color: #FFD6D6 }
.calc:not(.live) .calc-grid, .calc:not(.live) .cmp { opacity: .5; pointer-events: none }

.calc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start }
.calc-form { display: grid; gap: 16px; min-width: 0 }
fieldset.box { margin: 0; padding: 20px; border: 0; min-width: 0 }
legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 18px; font-weight: 800 }
legend small { display: block; font-size: 13px; font-weight: 500; color: var(--mute); margin-top: 2px }
.fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; clear: both }
.fg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px }
.fg > div { display: contents }
.fg > div[hidden] { display: none !important }
.f { display: grid; gap: 6px; min-width: 0 }
.f > span:first-child { font-size: 13.5px; color: var(--mute); line-height: 1.3 }
.f em { font-style: normal; color: var(--dim) }
.in { position: relative; display: flex; align-items: center }
.in input, .in select { width: 100%; min-width: 0; height: 48px; padding: 0 44px 0 14px; border: 0; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: 600 17px var(--sans); font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; transition: box-shadow .2s }
.in select { padding-right: 34px; font-size: 15px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat }
.in input:focus, .in select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc) }
.in i { position: absolute; right: 14px; font-style: normal; font-size: 14px; color: var(--dim); pointer-events: none }
.chk { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--s2); cursor: pointer; font-size: 15px; line-height: 1.4 }
.chk input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--acc) }
.chk em { display: block; font-style: normal; font-size: 13px; color: var(--mute) }
details > summary { cursor: pointer; color: var(--acc-2); font-weight: 600; font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 8px }
details > summary::-webkit-details-marker { display: none }
details > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #8B5CF626; font-size: 15px; line-height: 1 }
details[open] > summary::before { content: "−" }
.dims, .tariffs { margin-top: 16px; clear: both }
.tariffs .fg { margin-top: 12px }
.note { margin-top: 10px; font-size: 13.5px; color: var(--mute); line-height: 1.5 }

/* результат */
.res { position: sticky; top: calc(var(--barh) + 96px); padding: 22px; display: grid; gap: 14px; min-width: 0; background: linear-gradient(160deg, #8B5CF61c, #16161A 55%), var(--s1); box-shadow: inset 0 0 0 1px #8B5CF644, 0 40px 80px -40px #000 }
.res-top { font-size: 14px; color: var(--mute) }
.res-jur { color: var(--text); font-weight: 600 }
.res-msg { padding: 14px; border-radius: 12px; background: #2A1216; color: #FFD6D6 }
.res-body { display: grid; gap: 14px; min-width: 0 }
.big { font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--up) }
.res.bad .big { color: var(--down) }
.kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.kpi > div { padding: 10px 12px; border-radius: 12px; background: #ffffff08; min-width: 0 }
.kpi .wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px }
.kpi dt { font-size: 12.5px; color: var(--mute) }
.kpi dd { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere }
.bar-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--s2) }
.bar-stack i { display: block; height: 100%; transition: width .35s var(--ease) }
.bar-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mute) }
.bar-legend span { display: inline-flex; align-items: center; gap: 6px }
.bar-legend i { width: 10px; height: 10px; border-radius: 3px }
.bar-legend b { color: var(--text); font-weight: 600 }
.g-goods { background: #6E6B66 } .g-wb { background: #8B5CF6 } .g-ads { background: #0C9CEA } .g-tax { background: #EA4448 } .g-fx { background: #F29C0B } .g-fixed { background: #CB2CD6 } .g-profit { background: #4ADE80 }
.lines { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums }
.lines th { text-align: left; font-weight: 400; color: #CFCAC2; padding: 7px 8px 7px 0; border-top: 1px solid var(--line) }
.lines td { text-align: right; padding: 7px 0 7px 8px; white-space: nowrap; border-top: 1px solid var(--line) }
.lines td:last-child { color: var(--mute); width: 56px }
.lines tr[class^="g-"] { background: none }
.lines .l-price th, .lines .l-profit th, .lines .l-price td, .lines .l-profit td { font-weight: 700; color: var(--text) }
.res .btn { width: 100% }
.res-act { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap }

/* сравнение */
.cmp { margin-top: 16px; padding: 22px }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 800 }
.tbl-wrap { margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line) }
.cmp-table, .cmp-static { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums }
.cmp-table th, .cmp-table td, .cmp-static th, .cmp-static td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top }
.cmp-table thead th, .cmp-static thead th { border-top: 0; background: var(--s2) }
.cmp-table tbody th, .cmp-static tbody th { font-weight: 500; color: var(--mute); width: 22% }
.cmp-table td.cur, .cmp-table th.cur { background: #8B5CF614 }
.cmp-table td.best { color: var(--up) }
.cmp-table thead button { padding: 0; border: 0; background: none; color: var(--text); font: 700 16px var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px }
.best-tag { display: block; width: max-content; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #4ADE8022; color: var(--up); font-size: 12px; font-weight: 700 }
.neg { color: var(--down) }
.risks { margin-top: 16px; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: #CFCAC2 }
.disclaimer { margin-top: 12px; font-size: 13px; color: var(--dim) }

/* текст для поиска */
.seo { margin-top: 56px; display: grid; gap: 40px; max-width: 860px }
.seo h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; margin-bottom: 14px }
.seo p, .seo li { color: #CFCAC2; font-size: 16.5px; line-height: 1.7 }
.seo p + p, .seo p + ul, .seo ul + p { margin-top: 12px }
.seo ul { padding-left: 20px; display: grid; gap: 8px }
.seo b { color: var(--text) }
.seo a { color: var(--acc-2) }
.seo .cmp-static { font-size: 14.5px }
.seo .cmp-static td { color: #CFCAC2 }
.faq details { border-top: 1px solid var(--line); padding: 16px 0 }
.faq details:last-child { border-bottom: 1px solid var(--line) }
.faq summary { color: var(--text); font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px }
.faq summary::before { display: none }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--s2); color: var(--acc-2) }
.faq details[open] summary::after { content: "−" }
.faq details p { margin-top: 10px }
.more-list { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 10px }
.more-list a { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text) !important; text-decoration: none; font-weight: 600 }
.more-list a:hover { box-shadow: inset 0 0 0 1px var(--acc) }
.cta { margin-top: 48px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; background: linear-gradient(#18141C, #18141C) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 60px -30px #EA26A666 }
.cta-h { font-size: clamp(20px, 2vw, 26px); font-weight: 800; margin-bottom: 6px }
.cta p:not(.cta-h) { color: #CFCAC2; max-width: 60ch }

.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 14px }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px }
.foot-logo { display: flex; align-items: center; gap: 5px; margin-bottom: 8px }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px }
.foot a { color: var(--mute) }
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 420px; margin-left: auto; display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px #000; font-size: 14px; color: var(--mute) }
.cookie a { color: var(--text) }
.cookie div { display: flex; gap: 10px }
.cookie .btn { flex: 1 }

@media (max-width: 1000px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr) }
  .res { position: static }
}
@media (max-width: 860px) { .nav { display: none } .bar-in .btn { margin-left: auto } }
@media (max-width: 640px) {
  :root { --barh: 58px }
  .bar-in .btn span { display: none }
  .bar-in .btn { width: 42px; padding: 0 }
  main { padding-top: 16px }
  .tabs { gap: 4px; padding: 4px; border-radius: 16px }
  .tabs button { padding: 9px 4px; border-radius: 12px }
  .tabs button b { font-size: 14px }
  .tabs button small { font-size: 11px }
  fieldset.box, .res, .cmp { padding: 16px }
  .fg { gap: 10px }
  .f > span:first-child { font-size: 13px }
  .in input, .in select { height: 46px; font-size: 16px; padding-left: 12px }
  .in select { font-size: 14px }
  .big { font-size: 44px }
  .cta { flex-direction: column; align-items: stretch; padding: 20px }
  .cta .btn { width: 100% }
  .seo { margin-top: 40px; gap: 32px }
}
@media (max-width: 380px) { .fg { grid-template-columns: minmax(0, 1fr) } .tabs button small { display: none } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important } }

/* телефон: результат сразу после блока «Товар», мини-плашка прибыли, липкая первая колонка сравнения */
.mini { display: none }
@media (max-width: 1000px) {
  .calc-form { display: contents }
  .calc-form > .box:first-child { order: 1 }
  .res { order: 2 }
  .calc-form > .cond { order: 3 }
  .mini { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px; background: #1D1A26f2; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px #8B5CF666, 0 20px 40px -12px #000; transform: translateY(140%); transition: transform .35s var(--ease) }
  .mini.on { transform: none }
  .mini p { display: grid; line-height: 1.2; font-size: 12.5px; color: var(--mute) }
  .mini b { font-size: 20px; color: var(--up); font-variant-numeric: tabular-nums }
  .mini.bad b { color: var(--down) }
  .mini button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #8B5CF6; color: #fff; font: 700 14px var(--sans); cursor: pointer }
}
@media (max-width: 640px) {
  .cmp-table { min-width: 520px }
  .cmp-table tbody th, .cmp-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--s1); min-width: 112px; width: 112px; font-size: 13.5px }
  .cmp-table thead th:first-child { background: var(--s2) }
  .cmp-table th, .cmp-table td { padding: 10px 10px; font-size: 14px }
  .swipe { display: block; margin-top: 8px; font-size: 13px; color: var(--dim) }
}
.swipe { display: none }
@media (max-width: 420px) {
  .tabs button b { font-size: 13px; letter-spacing: -.01em }
  .tabs button { padding: 9px 2px }
}
@media (max-width: 380px) { .fg { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 340px) { .fg { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 640px) { .tabs { position: static } }
/* ревью: ничего не вылезает за экран на узких телефонах */
.seo { grid-template-columns: minmax(0, 1fr) }
.res { grid-template-columns: minmax(0, 1fr) }
.res .btn, .cta .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px }
.res-warn { padding: 10px 12px; border-radius: 12px; background: #2A2012; color: #F8D9A0; font-size: 14px }
.in select:disabled { opacity: .5; cursor: not-allowed }
