/* ==========================================================================
   Публичные калькуляторы /calculator (30.09.2026) — по макету rrr/vinmark-calculators-mockup.html.
   Поверх landing-v2.css (токены --lp-*, шапка и подвал лендингов). Все классы страницы — с приставкой cc-.
   ========================================================================== */

:root {
    --cc-red: #dc2626;
    --cc-red-soft: #fee2e2;
    --cc-teal-soft: #ccfbf1;
    --cc-amber-soft: #fef3c7;
    --cc-amber-dark: #b45309;
    --cc-blue-soft: #dbeafe;
}

body.cc-body { background: var(--lp-bg); }
.cc-num { font-variant-numeric: tabular-nums; }
.cc-hidden { display: none !important; }
.cc-muted { color: var(--lp-muted); }
.cc-sm { font-size: 0.8rem; }

/* ---------- вкладки всех калькуляторов (под шапкой сайта; на компьютере прилипают при прокрутке) ---------- */
.cc-tabs { background: #fff; border-bottom: 1px solid var(--lp-line); position: relative; z-index: 40; }
.cc-tabs-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.cc-tabs-in::-webkit-scrollbar { display: none; }
body.lp a.cc-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; color: var(--lp-muted); font-weight: 600;
    font-size: 0.86rem; white-space: nowrap; text-decoration: none; border: 1px solid transparent; flex: none; transition: background 0.15s, color 0.15s; }
body.lp a.cc-tab:hover { color: var(--lp-text); background: var(--lp-bg); }
body.lp a.cc-tab.on { color: var(--lp-blue-dark); background: var(--cc-blue-soft); border-color: #bfdbfe; }
.cc-tab i { font-size: 1rem; }
.cc-logos { display: inline-flex; align-items: center; flex: none; }
.cc-logos img { display: block; border-radius: 5px; }
.cc-logos img + img { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 992px) {
    .cc-tabs { position: sticky; top: 68px; }
}

/* ---------- шапка страницы: крошки, H1 и одна строка (решение владельца 30.09.2026 — без лишнего на первом экране) ---------- */
.cc-hero { background: radial-gradient(900px 380px at 12% -10%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(700px 360px at 95% 0%, rgba(168, 85, 247, 0.28), transparent 60%), linear-gradient(180deg, var(--lp-ink) 0%, var(--lp-ink-2) 100%);
    color: #fff; padding: 1.3rem 0 4.6rem; }
.cc-crumbs { font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.55rem; }
.cc-crumbs a { color: #cbd5e1; text-decoration: none; }
.cc-crumbs a:hover { text-decoration: underline; }
.cc-hero h1 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.02em; font-weight: 800; }
.cc-hero .cc-lead { font-size: 1rem; color: #cbd5e1; max-width: 820px; margin: 0; }
.cc-pull { margin-top: -3.4rem; position: relative; z-index: 2; }

/* ---------- раскладка ---------- */
.cc-card { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); }
.cc-pad { padding: 1.5rem; }
.cc-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.cc-sticky { position: sticky; top: 136px; }
.cc-stack { display: grid; gap: 1.5rem; min-width: 0; }
/* карточки сетки не шире колонки: широкая таблица прокручивается внутри .cc-scroll, а не раздвигает страницу на телефоне */
.cc-stack > * { min-width: 0; }
.cc-space { height: 1.5rem; }
.cc-section-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lp-muted); margin: 0 0 0.65rem; }
.cc-notice { border: 1px solid #fde68a; background: #fffbeb; color: #7c4a03; border-radius: var(--lp-radius-sm); padding: 0.75rem 1rem; font-size: 0.9rem; }
.cc-error-box { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: var(--lp-radius-sm); padding: 0.75rem 1rem; font-size: 0.9rem; }

/* ---------- форма ---------- */
.cc-field { margin-bottom: 1.1rem; }
.cc-field > label, .cc-flabel { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; }
.cc-hint { font-size: 0.78rem; color: var(--lp-muted); margin-top: 0.4rem; }
.cc-hint b { color: var(--lp-text); }
.cc-inp { width: 100%; height: 44px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); padding: 0 0.85rem; background: #fff;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s; font: inherit; color: inherit; }
.cc-inp:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.cc-inp.is-invalid { border-color: var(--cc-red); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
.cc-suffix { position: relative; }
.cc-suffix .cc-inp { padding-right: 2.6rem; }
.cc-suffix span { position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--lp-muted); font-weight: 600; pointer-events: none; }
select.cc-inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6b85' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.2rem; }
.cc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cc-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.cc-seg { display: flex; background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: 999px; padding: 4px; gap: 4px; }
.cc-seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 0.5rem 0.6rem; font-weight: 600; font-size: 0.84rem;
    color: var(--lp-muted); white-space: nowrap; cursor: pointer; font-family: inherit; }
.cc-seg button.on { background: #fff; color: var(--lp-text); box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.18); }
.cc-seg.sm button { padding: 0.4rem 0.5rem; font-size: 0.78rem; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cc-chip { border: 1px solid var(--lp-line); background: #fff; border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 0.8rem; font-weight: 500;
    color: var(--lp-text); display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; font-family: inherit; }
.cc-chip:hover { border-color: #cbd5e1; }
.cc-chip.on { border-color: var(--lp-blue); background: var(--cc-blue-soft); color: var(--lp-blue-dark); }
.cc-chip i { color: var(--lp-muted); }
.cc-chip.on i { color: var(--lp-blue-dark); }
.cc-examples { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--lp-line); }
.cc-examples .lbl { font-size: 0.78rem; color: var(--lp-muted); font-weight: 600; align-self: center; margin-right: 2px; }
.cc-ex { border: 1px dashed #cbd5e1; background: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.78rem; color: var(--lp-muted);
    font-weight: 500; text-decoration: none; }
.cc-ex:hover { border-color: var(--lp-blue); color: var(--lp-blue-dark); }
details.cc-more { border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); padding: 0 0.85rem; background: #fbfcfe; }
details.cc-more summary { list-style: none; cursor: pointer; padding: 0.75rem 0; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
details.cc-more summary::-webkit-details-marker { display: none; }
details.cc-more summary::after { content: '\F282'; font-family: bootstrap-icons; margin-left: auto; color: var(--lp-muted); transition: transform 0.2s; }
details.cc-more[open] summary::after { transform: rotate(180deg); }
details.cc-more .inner { padding: 0.25rem 0 0.85rem; }
.cc-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.82rem; color: var(--lp-text); margin-top: 0.5rem; cursor: pointer; }
.cc-check input { margin-top: 3px; }
.cc-range { display: flex; align-items: center; gap: 0.6rem; }
.cc-range input[type=range] { flex: 1; accent-color: var(--lp-blue); }
.cc-range .val { min-width: 48px; text-align: right; font-weight: 700; }
.cc-group { margin: 0.4rem 0 0.75rem; padding-top: 0.85rem; border-top: 1px dashed var(--lp-line); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--lp-muted); }
details.cc-more .inner > :last-child { margin-bottom: 0; }

/* «Схема и налоги» — на телефоне свёрнуты в строку с текущими значениями */
.cc-fold-sum { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 1.1rem; padding: 0.7rem 0.85rem;
    border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); background: #fbfcfe; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cc-fold-sum .t { min-width: 0; }
.cc-fold-sum small { display: block; color: var(--lp-muted); font-size: 0.75rem; font-weight: 600; }
.cc-fold-sum b { font-size: 0.9rem; }
.cc-fold-sum .cc-link { flex: none; font-size: 0.85rem; }

/* подсказки к полям: упаковка после смены товара, товар не выбран из списка */
.cc-attn-note, .cc-combo-note { display: flex; gap: 0.45rem; align-items: flex-start; margin-top: 0.5rem; padding: 0.5rem 0.7rem; border-radius: 10px;
    font-size: 0.8rem; background: #fffbeb; border: 1px solid #fde68a; color: #7c4a03; }
.cc-attn-note[hidden], .cc-combo-note[hidden] { display: none; }
.cc-field.attn .cc-row3 .cc-inp { border-color: #f59e0b; }

/* значок «?» и всплывающее объяснение термина */
.cc-q { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; padding: 0; border-radius: 50%; border: 1px solid #cbd5e1;
    background: #fff; color: var(--lp-muted); font: 700 11px/1 Inter, system-ui, sans-serif; cursor: pointer; vertical-align: 1px; flex: none; }
.cc-q:hover, .cc-q[aria-expanded="true"] { border-color: var(--lp-blue); color: var(--lp-blue-dark); }
.cc-tipbox { position: absolute; z-index: 120; max-width: 300px; padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--lp-ink); color: #e2e8f0;
    font-size: 0.82rem; line-height: 1.45; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.45); }

/* меню «Поделиться» на компьютере */
.cc-sharemenu { position: absolute; z-index: 120; min-width: 230px; padding: 0.4rem; border-radius: 14px; background: #fff; border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow-lg); display: grid; gap: 2px; }
.cc-sharemenu a, .cc-sharemenu button { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.7rem; border-radius: 10px; border: 0; background: none;
    font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--lp-text); text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
body.lp .cc-sharemenu a { color: var(--lp-text); }
.cc-sharemenu a:hover, .cc-sharemenu button:hover, .cc-sharemenu a:focus-visible, .cc-sharemenu button:focus-visible { background: var(--lp-bg); outline: none; }
.cc-sharemenu .mk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 0.66rem; font-weight: 800; flex: none; }
.cc-sharemenu .mk.tg { background: #229ed9; font-size: 0.95rem; }
.cc-sharemenu .mk.vk { background: #0077ff; }
.cc-sharemenu .mk.max { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.cc-sharemenu .mk.copy { background: #eef2f7; color: var(--lp-text); font-size: 0.95rem; }

/* выбор товара */
.cc-combo { position: relative; }
.cc-combo-list { position: absolute; left: 0; right: 0; top: 48px; background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm);
    box-shadow: var(--lp-shadow-lg); max-height: 300px; overflow: auto; z-index: 20; display: none; }
.cc-combo-list.open { display: block; }
.cc-combo-item { padding: 0.6rem 0.85rem; cursor: pointer; border-bottom: 1px solid #f1f4f9; }
.cc-combo-item:last-child { border-bottom: 0; }
.cc-combo-item:hover, .cc-combo-item.act { background: var(--cc-blue-soft); }
.cc-combo-item b { display: block; font-size: 0.88rem; }
.cc-combo-item small { color: var(--lp-muted); font-size: 0.75rem; }
.cc-combo-empty { padding: 0.75rem 0.85rem; color: var(--lp-muted); font-size: 0.84rem; }
.cc-picked { display: flex; gap: 0.4rem; align-items: baseline; flex-wrap: wrap; font-size: 0.78rem; color: var(--lp-muted); margin-top: 0.45rem; }
.cc-picked b { color: var(--lp-text); font-weight: 600; }
.cc-link { background: none; border: 0; padding: 0; color: var(--lp-blue-dark); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- вердикт ---------- */
.cc-verdict { border-radius: var(--lp-radius); padding: 1.6rem 1.75rem; background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%); border: 1px solid #cfe3ff; }
.cc-verdict.loss { background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%); border-color: #fecaca; }
.cc-verdict .v-kicker { font-size: 0.8rem; font-weight: 700; color: var(--lp-blue-dark); text-transform: uppercase; letter-spacing: 0.06em; display: flex;
    align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cc-verdict.loss .v-kicker { color: var(--cc-red); }
.cc-verdict .v-main { font-size: 1.85rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; margin: 0.5rem 0 0.4rem; }
.cc-verdict .v-main .big { color: var(--lp-blue-dark); }
.cc-verdict .v-main .pos { color: var(--lp-teal-dark); }
.cc-verdict .v-main .neg { color: var(--cc-red); }
.cc-verdict .v-sub { font-size: 1rem; color: #334155; }
.cc-verdict .v-sub b { color: var(--lp-text); }
.cc-verdict .v-note { margin-top: 0.75rem; font-size: 0.85rem; color: var(--lp-muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.cc-verdict .v-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.cc-mp { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.75rem; border-radius: 999px; padding: 0.2rem 0.6rem;
    color: #fff; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.cc-mp.ozon { background: var(--lp-ozon); }
.cc-mp.wb { background: var(--lp-wb); }
.cc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1rem; }
.cc-kpi { background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: 14px; padding: 0.6rem 0.75rem; }
.cc-kpi small { display: block; color: var(--lp-muted); font-size: 0.75rem; font-weight: 600; }
.cc-kpi b { font-size: 1.1rem; }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 999px; border: 1px solid transparent;
    padding: 0.55rem 1rem; font-weight: 600; font-size: 0.84rem; text-decoration: none; white-space: nowrap; cursor: pointer; font-family: inherit;
    transition: transform 0.15s, background 0.15s; }
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn-primary { background: var(--lp-blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(59, 130, 246, 0.7); }
.cc-btn-primary:hover { background: var(--lp-blue-dark); color: #fff; }
.cc-btn-teal { background: var(--lp-teal); color: #fff; }
.cc-btn-teal:hover { background: var(--lp-teal-dark); color: #fff; }
.cc-btn-light { background: #fff; color: var(--lp-text); border-color: var(--lp-line); }
.cc-btn-light:hover { border-color: #cbd5e1; color: var(--lp-text); }
.cc-btn-lg { padding: 0.85rem 1.4rem; font-size: 0.95rem; }
/* ссылки-кнопки: у лендинга body.lp a наследует цвет — внутри тёмного блока текст светлой кнопки становился белым */
body.lp a.cc-btn-light, body.lp a.cc-btn-light:hover { color: var(--lp-text); }
body.lp a.cc-btn-primary, body.lp a.cc-btn-teal { color: #fff; }

/* ---------- таблица вариантов ---------- */
.cc-table-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.cc-table-head a { font-size: 0.8rem; color: var(--lp-blue-dark); }
.cc-scroll { overflow-x: auto; margin-top: 0.75rem; }
.cc-ctable { width: 100%; border-collapse: separate; border-spacing: 0; }
.cc-ctable th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lp-muted); text-align: left; font-weight: 700; padding: 0 0.75rem 0.6rem; }
.cc-ctable th.r, .cc-ctable td.r { text-align: right; }
.cc-ctable td { padding: 0.75rem; border-top: 1px solid var(--lp-line); vertical-align: middle; }
.cc-ctable tr.sel td { background: #f5f9ff; }
.cc-ctable tr.pick { cursor: pointer; }
.cc-ctable tr.pick:hover td { background: #f8fafc; }
.cc-ctable tr.pick:focus-visible td { outline: 2px solid var(--lp-blue); outline-offset: -2px; }
.cc-best { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; color: var(--lp-teal-dark); background: var(--cc-teal-soft);
    border-radius: 999px; padding: 0.1rem 0.55rem; margin-left: 0.5rem; }
.cc-feebar { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; margin-top: 0.35rem; width: 120px; }
.cc-feebar span { display: block; height: 100%; }
.cc-feebar .ozon { background: var(--lp-ozon); }
.cc-feebar .wb { background: var(--lp-wb); }
.cc-pos { color: var(--lp-teal-dark); }
.cc-neg { color: var(--cc-red); }

/* ---------- чек и «куда уходят деньги» ---------- */
.cc-receipt-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.cc-receipt { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 1.35rem; box-shadow: var(--lp-shadow); }
.rc-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.rc-head img { width: 28px; height: 28px; border-radius: 8px; }
.rc-head b { font-size: 0.95rem; }
.rc-head .cc-mp { margin-left: auto; }
.rc-row { display: grid; grid-template-columns: 1fr auto 46px; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.88rem; align-items: baseline; }
.rc-row span { color: #334155; }
.rc-row span small { display: block; color: var(--lp-muted); font-size: 0.75rem; }
.rc-row b { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rc-row i { font-style: normal; color: var(--lp-muted); font-size: 0.75rem; text-align: right; font-variant-numeric: tabular-nums; }
.rc-row.first b { font-size: 1.05rem; font-weight: 800; }
.rc-sep { border-top: 1px dashed #cbd5e1; margin: 0.5rem 0; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.4rem; padding-top: 0.75rem; border-top: 2px solid var(--lp-text); }
.rc-total span { font-weight: 700; }
.rc-total b { font-size: 1.6rem; font-weight: 800; color: var(--lp-teal-dark); font-variant-numeric: tabular-nums; }
.rc-total b.neg { color: var(--cc-red); }
.rc-foot { font-size: 0.75rem; color: var(--lp-muted); margin-top: 0.6rem; display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.cc-moneybar { display: flex; height: 22px; border-radius: 99px; overflow: hidden; margin: 0.4rem 0 0.75rem; background: #eef2f7; }
.cc-moneybar span { display: block; height: 100%; }
.cc-sw-cost { background: #94a3b8; }
.cc-sw-ozon { background: var(--lp-ozon); }
.cc-sw-wb { background: var(--lp-wb); }
.cc-sw-tax { background: var(--lp-amber); }
.cc-sw-profit { background: var(--lp-teal); }
.cc-sw-loss { background: var(--cc-red); }
.cc-legend { display: grid; gap: 0.5rem; }
.cc-legend div { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 0.6rem; align-items: center; font-size: 0.88rem; }
.cc-legend .sw { width: 12px; height: 12px; border-radius: 4px; }
.cc-legend b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-legend i { font-style: normal; color: var(--lp-muted); font-size: 0.78rem; min-width: 40px; text-align: right; }

/* ---------- подсказки ---------- */
.cc-tips { display: grid; gap: 0.75rem; }
.cc-tip { display: grid; grid-template-columns: 40px 1fr auto; gap: 0.85rem; align-items: start; padding: 1rem; border: 1px solid var(--lp-line); border-radius: 16px; background: #fff; }
.cc-tip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: var(--cc-teal-soft); color: var(--lp-teal-dark); }
.cc-tip.amber .ic { background: var(--cc-amber-soft); color: var(--cc-amber-dark); }
.cc-tip.blue .ic { background: var(--cc-blue-soft); color: var(--lp-blue-dark); }
.cc-tip b.t { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cc-tip p { margin: 0; color: #475569; font-size: 0.85rem; }
.cc-tip p a { font-weight: 600; color: var(--lp-blue-dark); }
.cc-tip .gain { font-weight: 800; color: var(--lp-teal-dark); white-space: nowrap; font-size: 0.95rem; text-align: right; }
.cc-tip .gain small { display: block; color: var(--lp-muted); font-weight: 600; font-size: 0.72rem; }
.cc-tip .gain.neutral { color: var(--lp-muted); font-weight: 700; font-size: 0.8rem; }
details.cc-tips-more { margin-top: 0.75rem; }
details.cc-tips-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.88rem;
    color: var(--lp-blue-dark); padding: 0.35rem 0; }
details.cc-tips-more summary::-webkit-details-marker { display: none; }
details.cc-tips-more summary::after { content: '\F282'; font-family: bootstrap-icons; font-size: 0.8rem; transition: transform 0.2s; }
details.cc-tips-more[open] summary::after { transform: rotate(180deg); }
details.cc-tips-more .cc-tips { margin-top: 0.5rem; }

/* ---------- откуда цифры ---------- */
details.cc-src { border: 1px solid var(--lp-line); border-radius: 16px; background: #fff; padding: 0 1.1rem; }
details.cc-src summary { list-style: none; cursor: pointer; padding: 0.85rem 0; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
details.cc-src summary::-webkit-details-marker { display: none; }
details.cc-src summary::after { content: '\F282'; font-family: bootstrap-icons; margin-left: auto; color: var(--lp-muted); }
details.cc-src[open] summary::after { transform: rotate(180deg); }
.cc-srclist { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.cc-srclist li { display: grid; grid-template-columns: 18px 1fr; gap: 0.5rem; font-size: 0.85rem; color: #334155; }
.cc-srclist li i { color: var(--lp-blue); }
.cc-srclist li small { color: var(--lp-muted); }

/* ---------- сравнение ---------- */
.cc-cmp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.cc-cmp { border: 1px solid var(--lp-line); border-radius: 18px; background: #fff; padding: 1.1rem; }
.cc-cmp.best-card { border-color: #5eead4; box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12); }
.cc-cmp .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.cc-cmp .price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.cc-cmp .cap { font-size: 0.78rem; color: var(--lp-muted); }
.cc-cmp .line { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.3rem 0; border-top: 1px solid #f1f4f9; }
.cc-delta { display: grid; gap: 0.5rem; }
.cc-delta div { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--lp-bg); }
.cc-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cc-mini { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.1rem; border-radius: 16px; border: 1px solid var(--lp-line); background: #fff; }
.cc-mini .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.cc-mini .ic.teal { background: var(--cc-teal-soft); color: var(--lp-teal-dark); }
.cc-mini .ic.blue { background: var(--cc-blue-soft); color: var(--lp-blue-dark); }
.cc-mini .ic.gray { background: #f1f5f9; color: #334155; }
.cc-mini b { display: block; margin-bottom: 0.25rem; }
.cc-mini p { margin: 0 0 0.6rem; color: var(--lp-muted); font-size: 0.85rem; }
.cc-mini .cc-btn + .cc-btn { margin-left: 0.35rem; }

/* ---------- акция ---------- */
.cc-duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.cc-duo .box { border-radius: 18px; padding: 1.25rem; background: #fff; border: 1px solid var(--lp-line); text-align: center; }
.cc-duo .box small { display: block; color: var(--lp-muted); font-weight: 600; }
.cc-duo .box b { display: block; font-size: 1.85rem; font-weight: 800; margin: 0.25rem 0; }
.cc-duo .arrow { font-size: 1.75rem; color: var(--lp-muted); }

/* ---------- юнит-экономика ---------- */
.cc-utable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cc-utable th { text-align: right; padding: 0.6rem; font-size: 0.75rem; color: var(--lp-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cc-utable th:first-child { text-align: left; }
.cc-utable td { padding: 0.55rem 0.6rem; border-top: 1px solid var(--lp-line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-utable td:first-child { text-align: left; color: #334155; white-space: normal; }
.cc-utable tr.tot td { font-weight: 800; border-top: 2px solid var(--lp-text); }
.cc-utable tr.sub td { color: var(--lp-muted); font-size: 0.82rem; }
.cc-facts { display: grid; gap: 0.6rem; }
.cc-fact { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; font-size: 0.88rem; color: #334155; }
.cc-fact i { color: var(--lp-blue); font-size: 1rem; }

/* ---------- переход в сервис ---------- */
.cc-bridge { border-radius: var(--lp-radius); padding: 1.75rem; background: radial-gradient(600px 200px at 100% 0%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(135deg, var(--lp-ink) 0%, var(--lp-ink-3) 100%); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; }
.cc-bridge h2 { font-size: 1.35rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.cc-bridge p { color: #cbd5e1; margin: 0 0 0.85rem; }
.cc-bridge ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.5rem; }
.cc-bridge li { display: flex; gap: 0.6rem; color: #e2e8f0; font-size: 0.88rem; }
.cc-bridge li i { color: #4ade80; }
.cc-bridge .side { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1.1rem; }
.cc-bridge .side b { display: block; font-size: 0.95rem; margin-bottom: 0.4rem; }
.cc-bridge .side p { font-size: 0.85rem; margin-bottom: 0.75rem; }
.cc-bridge .note { color: #94a3b8; font-size: 0.8rem; margin-top: 0.6rem; }

/* ---------- «как работает калькулятор» (текст для поиска под калькулятором) ---------- */
.cc-about h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.cc-about p { margin: 0 0 0.6rem; color: #475569; }
.cc-about .cc-hint { display: flex; align-items: center; gap: 0.45rem; margin: 0.75rem 0 0; }
.cc-about .live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); flex: none; }

/* ---------- частые вопросы ---------- */
.cc-faq h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.cc-faq details { border-top: 1px solid var(--lp-line); padding: 0 2px; }
.cc-faq details:last-child { border-bottom: 1px solid var(--lp-line); }
.cc-faq summary { list-style: none; cursor: pointer; padding: 1rem 0; font-weight: 600; display: flex; gap: 0.6rem; align-items: center; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: '\F4FE'; font-family: bootstrap-icons; margin-left: auto; color: var(--lp-muted); }
.cc-faq details[open] summary::after { content: '\F2EA'; }
.cc-faq p { margin: 0 0 1rem; color: #475569; }

/* ---------- все калькуляторы: Ozon и WB большими карточками с логотипами, ниже три общих ---------- */
.cc-hub-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.cc-hub-card { grid-column: span 2; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.35rem; border-radius: var(--lp-radius); background: #fff;
    border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); text-decoration: none; color: var(--lp-text); transition: transform 0.15s, box-shadow 0.15s; position: relative; }
.cc-hub-card.big { grid-column: span 3; padding: 1.6rem; }
.cc-hub-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-lg); color: var(--lp-text); }
.cc-hub-card .top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 52px; }
.cc-hub-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: #f1f5f9; color: #334155; }
.cc-hub-card .cc-logos.lg img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.35); }
.cc-hub-card .cc-logos.lg img + img { margin-left: -12px; box-shadow: 0 0 0 3px #fff, 0 6px 16px -8px rgba(15, 23, 42, 0.35); }
.cc-hub-card .cc-logos.sm img { width: 24px; height: 24px; border-radius: 7px; }
.cc-hub-card h2 { font-size: 1.05rem; margin: 0; }
.cc-hub-card.big h2 { font-size: 1.2rem; }
.cc-hub-card p { margin: 0; color: var(--lp-muted); font-size: 0.88rem; flex: 1; }
.cc-hub-card .go { font-weight: 600; color: var(--lp-blue-dark); font-size: 0.88rem; display: flex; align-items: center; gap: 0.4rem; }

/* ---------- плашка на телефоне ---------- */
.cc-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--lp-line);
    box-shadow: 0 -10px 30px -12px rgba(15, 23, 42, 0.25); padding: 0.6rem 1rem; display: none; align-items: center; gap: 0.75rem; }
.cc-mbar .t { flex: 1; min-width: 0; }
.cc-mbar .t small { display: block; color: var(--lp-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-mbar .t b { font-size: 1.05rem; }
.cc-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--lp-ink); color: #fff; padding: 0.75rem 1.1rem;
    border-radius: 14px; font-size: 0.88rem; z-index: 100; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; max-width: 90vw; }
.cc-toast.show { opacity: 1; transform: translateX(-50%); }
.cc-loading { opacity: 0.55; transition: opacity 0.15s; }

@media (max-width: 1100px) {
    .cc-grid { grid-template-columns: minmax(0, 1fr); }
    .cc-sticky { position: static; }
    .cc-hub-grid { grid-template-columns: 1fr 1fr; }
    .cc-hub-card, .cc-hub-card.big { grid-column: auto; }
    .cc-hub-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .cc-receipt-wrap { grid-template-columns: 1fr; }
    .cc-bridge { grid-template-columns: 1fr; }
    .cc-kpis { grid-template-columns: 1fr 1fr; }
    .cc-mini-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cc-hero { padding: 1rem 0 4.2rem; }
    .cc-hero .cc-lead { font-size: 0.92rem; }
    .cc-pull { margin-top: -3rem; }
    .cc-pad { padding: 1.1rem; }
    .cc-verdict { padding: 1.25rem; }
    .cc-verdict .v-main { font-size: 1.45rem; }
    .cc-cmp-grid { grid-template-columns: 1fr; }
    .cc-hub-grid { grid-template-columns: 1fr; }
    .cc-duo { grid-template-columns: 1fr; }
    /* примеры — одной строкой с прокруткой вбок, схема и налоги — свёрнутой строкой */
    .cc-examples { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -1.1rem; margin-right: -1.1rem; padding-left: 1.1rem; padding-right: 1.1rem; }
    .cc-examples::-webkit-scrollbar { display: none; }
    .cc-ex, .cc-examples .lbl { flex: none; white-space: nowrap; }
    .cc-fold-sum { display: flex; }
    .cc-fold:not(.open) .cc-fold-body { display: none; }
    .cc-duo .arrow { transform: rotate(90deg); text-align: center; }
    .cc-mbar.on { display: flex; }
    body.cc-has-mbar { padding-bottom: 72px; }
    .cc-ctable th:nth-child(3), .cc-ctable td:nth-child(3) { display: none; }
    .cc-tip { grid-template-columns: 36px 1fr; }
    .cc-tip .gain { grid-column: 2; text-align: left; }
    .cc-seg button { font-size: 0.78rem; }
}
