:root {
  --ink: #08111f;
  --ink-2: #0d192b;
  --panel: #101e32;
  --panel-2: #14243a;
  --line: rgba(255, 255, 255, 0.1);
  --muted: #8fa0b8;
  --text: #f4f8ff;
  --accent: #43e3b1;
  --accent-2: #8af4d3;
  --blue: #2f7cf6;
  --violet: #b543e5;
  --danger: #ff7088;
  --warning: #ffc761;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 8%, rgba(47, 124, 246, 0.13), transparent 30rem),
    radial-gradient(circle at 15% 21%, rgba(67, 227, 177, 0.08), transparent 28rem),
    var(--ink);
  color: var(--text);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  width: min(1240px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.14rem; font-weight: 760; letter-spacing: -0.03em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; padding: 5px; border-radius: 8px; background: var(--accent); transform: rotate(-2deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 35%; }
.brand-mark i:nth-child(2) { height: 62%; }
.brand-mark i:nth-child(3) { height: 100%; }

nav { display: flex; align-items: center; gap: 30px; color: #b7c3d4; font-size: 0.9rem; }
nav a { transition: color 160ms ease; }
nav a:hover { color: #fff; }

.button { min-height: 44px; border: 0; border-radius: 12px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; font-weight: 680; cursor: pointer; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-ghost { min-height: 38px; background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); color: #d9e3f1; }
.button-primary { background: var(--accent); color: #062016; box-shadow: 0 12px 30px rgba(67, 227, 177, 0.14); }
.button-secondary { background: #1b2a3e; color: var(--text); border: 1px solid rgba(255,255,255,.12); }
.button-small { min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: .72rem; }
.full-width { width: 100%; }

main { overflow: hidden; }
.calculator-section, .analytics-section, .pricing-section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.calculator-section { padding: 48px 0 112px; }
.section-intro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: end; margin-bottom: 34px; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 0.74rem; line-height: 1; font-weight: 780; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; max-width: 830px; font-size: clamp(2.6rem, 4.7vw, 4.25rem); line-height: 1; letter-spacing: -0.055em; font-weight: 690; }
.intro-copy { max-width: 480px; margin-bottom: 4px; color: #9caac0; font-size: 1.04rem; line-height: 1.65; }

.market-switch { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.market-tab { min-height: 48px; padding: 0 22px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: rgba(255,255,255,.025); color: var(--muted); font-weight: 730; cursor: pointer; }
.market-tab.active { color: #fff; background: var(--panel); border-color: rgba(255,255,255,.16); border-bottom-color: var(--panel); transform: translateY(1px); }
.market-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(47,124,246,.12); }
.wb-tab .market-dot { background: var(--violet); box-shadow: 0 0 0 5px rgba(181,67,229,.12); }
.tariff-note { margin-left: auto; color: #73839a; font-size: 0.8rem; }

.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr); border: 1px solid rgba(255,255,255,.13); border-radius: 0 var(--radius) var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.input-panel { padding: 34px; border-right: 1px solid var(--line); }
.form-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.form-heading > div { display: flex; align-items: center; gap: 12px; }
.form-heading.compact { margin-bottom: 18px; }
.form-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.step { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; border: 1px solid rgba(67,227,177,.32); border-radius: 7px; color: var(--accent); font-size: .68rem; font-weight: 800; }
.text-button, .footer-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: .8rem; font-weight: 700; cursor: pointer; }
.text-button:hover, .footer-link:hover { text-decoration: underline; }

fieldset { padding: 0; border: 0; margin: 0; }
.scheme-fieldset { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; margin-bottom: 17px; border-radius: 12px; background: rgba(255,255,255,.035); }
.scheme-fieldset legend { float: left; margin-top: 8px; font-size: .8rem; color: #9faec3; }
.segmented { display: flex; padding: 3px; border-radius: 9px; background: #081422; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-width: 64px; height: 32px; padding: 0 12px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #7889a0; font-size: .78rem; font-weight: 780; }
.segmented input:checked + span { background: #1c2d43; color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.18); }

.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.finance-grid { grid-template-columns: repeat(4, 1fr); }
.field { min-width: 0; height: 78px; padding: 13px 14px 10px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); transition: border-color 160ms ease, background 160ms ease; }
.field:focus-within { border-color: rgba(67,227,177,.55); background: rgba(67,227,177,.035); }
.field-accent { border-color: rgba(67,227,177,.19); }
.field > span { color: #8798ae; font-size: .72rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input { width: 100%; min-width: 0; margin-top: 7px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 1.02rem; font-weight: 720; }
.field select { width: 100%; min-width: 0; margin-top: 7px; border: 0; outline: 0; background: #111f33; color: #fff; font-size: .83rem; font-weight: 680; }
.field-readonly { background: rgba(47,124,246,.07); }
.field-readonly input, .field input[readonly] { color: #87b7ff; cursor: default; }
.field input::-webkit-inner-spin-button { appearance: none; }
.form-divider { height: 1px; margin: 28px 0 25px; background: var(--line); }
.logistics-grid { grid-template-columns: repeat(3, 1fr); }
.subsection-title { display: flex; align-items: center; gap: 12px; margin: 27px 0 18px; }
.subsection-title h2 { margin: 0 0 3px; font-size: 1rem; }
.subsection-title small { color: #70839c; font-size: .7rem; }
.tax-grid { display: grid; grid-template-columns: 1.45fr .8fr .8fr; gap: 12px; }
.dimension-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.field-hint { margin: 10px 2px 0; color: #71849e; font-size: .7rem; line-height: 1.45; }
.mode-switch { margin-left: auto; }
.mode-switch span { min-width: 83px; }
.dimension-field.is-disabled { opacity: .42; }
.route-buyout { margin-top: 13px; }

.ozon-route { margin: 18px 0 21px; padding: 18px; border: 1px solid rgba(47,124,246,.32); border-radius: 15px; background: linear-gradient(135deg, rgba(47,124,246,.11), rgba(67,227,177,.035)); }
.route-heading, .route-summary, .comparison-heading, .comparison-summary { display: flex; align-items: center; justify-content: space-between; }
.route-heading { margin-bottom: 15px; }
.route-heading h3 { margin: 4px 0 0; font-size: .96rem; }
.route-kicker { color: #73a8ff; font-size: .62rem; font-weight: 790; letter-spacing: .1em; text-transform: uppercase; }
.route-period { padding: 5px 8px; border: 1px solid rgba(67,227,177,.22); border-radius: 99px; color: var(--accent); font-size: .62rem; font-weight: 740; }
.route-grid { display: grid; grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr); align-items: end; gap: 8px; }
.route-grid label { min-width: 0; }
.route-grid label > span { display: block; margin-bottom: 7px; color: #8798ae; font-size: .68rem; }
.route-grid select { width: 100%; height: 42px; padding: 0 34px 0 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; outline: 0; background: #0b192a; color: #e9f1fb; font-size: .74rem; font-weight: 650; }
.route-grid select:focus { border-color: rgba(67,227,177,.55); }
.route-arrow { height: 42px; display: grid; place-items: center; color: var(--accent); }
.route-summary { gap: 20px; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.route-summary small { display: block; margin-bottom: 4px; color: #6f829c; font-size: .61rem; }
.route-summary strong { display: block; color: #d9e5f4; font-size: .72rem; line-height: 1.35; }
.route-price { flex: 0 0 auto; text-align: right; }
.route-price strong { color: var(--accent); font-size: .96rem; }
.route-source { margin: 11px 0 0; color: #647995; font-size: .61rem; line-height: 1.45; }

.range-field { display: block; margin-top: 20px; padding: 16px 16px 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); }
.range-field > span { display: flex; justify-content: space-between; color: #98a7bb; font-size: .79rem; }
.range-field strong { color: #fff; font-size: .9rem; }
.range-field input { width: 100%; height: 4px; margin: 15px 0 9px; appearance: none; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--range-progress, 90%), #29384c var(--range-progress, 90%)); outline: 0; }
.range-field input::-webkit-slider-thumb { width: 17px; height: 17px; appearance: none; border: 4px solid var(--accent); border-radius: 50%; background: var(--ink); cursor: pointer; }
.range-field small { color: #6f8098; font-size: .7rem; }

.result-panel { position: relative; padding: 31px 30px 25px; background: linear-gradient(155deg, #12223a, #0c192b 64%); }
.result-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 10%, rgba(67,227,177,.1), transparent 36%); }
.result-panel > * { position: relative; z-index: 1; }
.result-topline { display: flex; align-items: center; justify-content: space-between; color: #8596ad; font-size: .72rem; font-weight: 700; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(67,227,177,.1); }
.profit-block { margin: 26px 0 24px; }
.profit-block > span { display: block; color: #97a8bf; font-size: .78rem; }
.profit-block strong { display: block; margin: 7px 0 6px; color: var(--accent-2); font-size: clamp(2.4rem, 5vw, 3.65rem); line-height: 1; letter-spacing: -0.055em; }
.profit-block em { padding: 5px 8px; border-radius: 6px; background: rgba(67,227,177,.1); color: var(--accent); font-size: .68rem; font-style: normal; font-weight: 740; }
.profit-block.loss strong { color: #ff879b; }
.profit-block.loss em { background: rgba(255,112,136,.1); color: #ff879b; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric-grid > div { min-height: 67px; padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.025); }
.metric-grid span { display: block; margin-bottom: 7px; color: #72849d; font-size: .68rem; }
.metric-grid strong { font-size: .94rem; }
.expense-chart { margin: 23px 0 17px; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; font-size: .73rem; }
.chart-heading span:last-child { color: #71839c; font-size: .66rem; }
.stacked-bar { height: 10px; display: flex; overflow: hidden; border-radius: 99px; background: #1f2e42; }
.stacked-bar i { display: block; min-width: 0; transition: width 220ms ease; }
.stacked-bar .bar-cost { background: #4d647f; }
.stacked-bar .bar-market { background: var(--blue); }
.stacked-bar .bar-tax { background: var(--warning); }
.stacked-bar .bar-profit { background: var(--accent); }
.stacked-bar .bar-loss { background: var(--danger); }
.chart-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; color: #7c8da5; font-size: .61rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; }
.legend-cost { background: #4d647f; }.legend-market { background: var(--blue); }.legend-tax { background: var(--warning); }.legend-profit { background: var(--accent); }
.expense-list { border-top: 1px solid var(--line); padding-top: 8px; }
.expense-list > div { display: flex; align-items: center; justify-content: space-between; min-height: 27px; color: #8293ab; font-size: .69rem; }
.expense-list strong { color: #c8d2df; font-size: .71rem; }
.result-disclaimer { margin: 13px 0 0; color: #5f718a; font-size: .62rem; line-height: 1.45; }

.cluster-comparison { margin-top: 22px; padding: 29px 30px 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #0d1a2c; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.comparison-heading { gap: 30px; align-items: end; }
.comparison-heading h2 { margin: 0; font-size: clamp(1.65rem,3vw,2.4rem); letter-spacing: -.035em; }
.comparison-heading > p { max-width: 390px; margin: 0 0 4px; color: #7f91a9; font-size: .77rem; text-align: right; }
.comparison-summary { justify-content: flex-start; gap: 22px; margin: 21px 0 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.025); color: #8698b0; font-size: .7rem; }
.comparison-summary span { display: inline-flex; align-items: center; gap: 6px; }
.comparison-summary span:last-child { margin-left: auto; color: #657890; }
.summary-dot { width: 7px; height: 7px; border-radius: 50%; }
.danger-dot { background: var(--danger); }.profit-dot { background: var(--accent); }
.cluster-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; }
.cluster-table { width: 100%; min-width: 790px; border-collapse: collapse; }
.cluster-table th { height: 38px; padding: 0 13px; background: rgba(255,255,255,.035); color: #687c96; font-size: .62rem; font-weight: 750; text-align: right; }
.cluster-table th:first-child { text-align: left; }
.cluster-table td { height: 47px; padding: 0 13px; border-top: 1px solid rgba(255,255,255,.06); color: #a9b7c9; font-size: .71rem; text-align: right; white-space: nowrap; }
.cluster-table td:first-child { color: #e1e9f4; font-weight: 650; text-align: left; }
.cluster-table tbody tr { cursor: pointer; transition: background 140ms ease; }
.cluster-table tbody tr:hover, .cluster-table tbody tr.selected { background: rgba(47,124,246,.09); }
.cluster-table .positive-value { color: var(--accent); font-weight: 740; }
.cluster-table .negative-value { color: #ff879b; font-weight: 740; }
.cluster-status { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: rgba(67,227,177,.09); color: var(--accent); font-size: .61rem; font-weight: 760; }
.cluster-status.loss { background: rgba(255,112,136,.1); color: #ff879b; }
.comparison-note { margin: 12px 0 0; color: #667a94; font-size: .66rem; }
body[data-market="wb"] .ozon-only { display: none !important; }

.analytics-section { padding: 110px 0; }
.section-heading-row { display: grid; grid-template-columns: 1.1fr .75fr; gap: 90px; align-items: end; margin-bottom: 48px; }
.section-heading-row h2, .pricing-copy h2 { margin-bottom: 0; font-size: clamp(2.35rem, 4.5vw, 4.2rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 670; }
.section-heading-row > p { margin: 0 0 5px; color: #95a4b9; line-height: 1.65; }

.product-status { min-height: 62px; margin-bottom: 12px; padding: 10px 12px 10px 17px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; border: 1px solid rgba(67,227,177,.22); border-radius: 13px; background: rgba(67,227,177,.055); }
.product-status > span { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .72rem; font-weight: 760; white-space: nowrap; }
.product-status > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(67,227,177,.09); }
.product-status p { margin: 0; color: #91a3ba; font-size: .72rem; line-height: 1.45; }

.dashboard-demo { min-height: 530px; display: grid; grid-template-columns: 185px 1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: #eef2f7; box-shadow: 0 35px 90px rgba(0,0,0,.34); color: #132033; transform: perspective(1600px) rotateX(1deg); transform-origin: center bottom; }
.dashboard-nav { padding: 23px 14px; display: flex; flex-direction: column; background: #0d192a; color: #8fa0b7; }
.mini-brand { display: flex; align-items: center; gap: 8px; margin: 0 8px 29px; color: #fff; font-size: .85rem; font-weight: 760; }
.mini-brand > span { width: 19px; height: 19px; border-radius: 6px; background: var(--accent); }
.dash-link { height: 39px; margin-bottom: 5px; padding: 0 11px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: .72rem; text-align: left; }
.dash-link i { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; }
.dash-link.active { background: rgba(67,227,177,.1); color: var(--accent); }
.dash-account { margin-top: auto; padding: 12px 8px 2px; display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.dash-account span { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: #1d3148; color: #fff; font-size: .58rem; }
.dash-account small { color: #bdc7d4; font-size: .6rem; }
.dashboard-main { min-width: 0; padding: 27px 30px 31px; }
.dash-mobile-nav { display: none; }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: panel-in 180ms ease-out; }
@keyframes panel-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; }
.dashboard-head small { display: block; margin-bottom: 5px; color: #8793a4; font-size: .64rem; }
.dashboard-head h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.dash-filters { display: flex; gap: 7px; }
.dash-filters span { padding: 8px 11px; border: 1px solid #dce2e9; border-radius: 8px; background: white; color: #59667a; font-size: .64rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 11px; }
.dash-kpis article { padding: 15px; border: 1px solid #dfe5eb; border-radius: 11px; background: #fff; }
.dash-kpis span { display: block; margin-bottom: 13px; color: #758196; font-size: .62rem; }
.dash-kpis strong { display: block; margin-bottom: 5px; font-size: .98rem; letter-spacing: -.025em; }
.dash-kpis small { color: #8792a2; font-size: .58rem; }
.positive { color: #0f9f73 !important; }
.dash-content-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; margin-bottom: 10px; }
.revenue-card, .alert-card, .sku-table { border: 1px solid #dfe5eb; border-radius: 11px; background: #fff; }
.revenue-card, .alert-card { min-height: 195px; padding: 15px; }
.card-title { display: flex; align-items: center; justify-content: space-between; font-size: .73rem; font-weight: 700; }
.card-title small { color: #8a96a6; font-size: .58rem; font-weight: 500; }
.bars { height: 142px; display: flex; align-items: end; gap: 10px; padding: 18px 7px 0; border-bottom: 1px solid #e7ebf0; background: repeating-linear-gradient(to top, transparent 0, transparent 34px, #eff2f5 35px); }
.bars > div { position: relative; flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; }
.bars > div::before, .bars > div::after { content:""; display:block; width: 21%; border-radius: 3px 3px 0 0; }
.bars > div::before { height: var(--sales); background: #4388f5; }
.bars > div::after { height: var(--profit); background: #42d9ad; }
.bars span { position: absolute; bottom: -17px; color: #8b97a6; font-size: .53rem; }
.alert-card { display: flex; flex-direction: column; }
.alert-row { flex: 1; display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f4; font-size: .61rem; color: #677487; }
.alert-row:last-child { border-bottom: 0; }
.alert-row b { font-size: .65rem; }.alert-row strong { color: #202d40; }
.danger { color: #ed5672; }.warning { color: #d89518; }.neutral { color: #6080a8; }
.sku-table { overflow: hidden; }
.sku-row { min-height: 42px; padding: 0 15px; display: grid; grid-template-columns: 1.65fr .65fr .75fr .75fr .45fr; align-items: center; border-top: 1px solid #edf0f4; color: #445267; font-size: .61rem; }
.sku-row > span:first-child { display: flex; align-items: center; gap: 8px; }
.sku-head { min-height: 34px; border-top: 0; color: #8b96a6; font-size: .56rem; }
.sku-thumb { width: 23px; height: 23px; border-radius: 6px; }.sku-thumb.blue { background: #d8e8ff; }.sku-thumb.violet { background: #efddf7; }.sku-thumb.cyan { background: #d7f3ef; }
.market-pill { justify-self: start; padding: 3px 6px; border-radius: 5px; font-weight: 700; }.market-pill.ozon { color: #1d65db; background: #e3edff; }.market-pill.wb { color: #9b31bb; background: #f5e3fa; }

.compact-kpis { margin-bottom: 14px; }
.data-table { overflow: auto; border: 1px solid #dfe5eb; border-radius: 11px; background: #fff; }
.data-row { min-width: 720px; min-height: 61px; padding: 0 15px; display: grid; grid-template-columns: 1.7fr repeat(5, .72fr); align-items: center; border-top: 1px solid #edf0f4; color: #445267; font-size: .64rem; }
.data-row:first-child { border-top: 0; }
.data-row > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.data-row b { color: #172438; font-size: .68rem; }
.data-row small { color: #8a96a6; font-size: .56rem; }
.data-head { min-height: 38px; background: #f7f9fb; color: #8b96a6; font-size: .56rem; font-weight: 680; }
.finance-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 12px; margin-top: 22px; }
.finance-total { min-height: 288px; padding: 24px; display: flex; flex-direction: column; justify-content: center; border-radius: 13px; background: linear-gradient(145deg,#12263c,#0f4136); color: #fff; }
.finance-total span { color: #aac2c7; font-size: .68rem; }
.finance-total strong { margin: 10px 0 7px; color: #7df0cb; font-size: 1.7rem; letter-spacing: -.04em; }
.finance-total small { max-width: 180px; color: #79979b; font-size: .6rem; line-height: 1.45; }
.finance-breakdown { padding: 8px 18px; border: 1px solid #dfe5eb; border-radius: 13px; background: #fff; }
.finance-breakdown > div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf0f4; color: #69768a; font-size: .65rem; }
.finance-breakdown > div:last-child { border-bottom: 0; }
.finance-breakdown strong { color: #263448; }
.notice-card { margin-top: 12px; padding: 15px 17px; display: grid; grid-template-columns: 135px 1fr; gap: 14px; border: 1px solid #cfe0f8; border-radius: 11px; background: #edf5ff; color: #50627a; font-size: .62rem; line-height: 1.5; }
.notice-card b { color: #1e5fae; }
.secure-label { padding: 7px 10px; border-radius: 7px; background: #e4f7f1; color: #11805e; font-size: .59rem; font-weight: 700; }
.connection-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-top: 23px; }
.connection-card { min-height: 250px; padding: 17px; display: flex; flex-direction: column; border: 1px solid #dfe5eb; border-radius: 13px; background: #fff; }
.connection-brand { display: flex; align-items: center; gap: 9px; color: #1a293e; font-size: .74rem; font-weight: 740; }
.connection-brand b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #e7eef8; color: #315f99; }
.ozon-connect b { background: #e7efff; color: #1965e5; }.wb-connect b { background: #f5e6fa; color: #9e34bc; }
.connection-state { align-self: flex-start; margin: 18px 0 2px; padding: 4px 7px; border-radius: 5px; background: #fff1f3; color: #d44b65; font-size: .55rem; font-weight: 700; }
.muted-state { background: #edf1f5; color: #768396; }
.connection-state.demo-connected { background: #e4f7f1; color: #11805e; }
.connection-card p { margin: 13px 0 17px; color: #778398; font-size: .61rem; line-height: 1.52; }
.connection-card .button { width: 100%; margin-top: auto; }
.sync-explainer { margin-top: 13px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; border: 1px solid #dfe5eb; border-radius: 11px; background: #fff; }
.sync-explainer > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #e6f7f1; color: #11805e; font-size: .58rem; font-weight: 800; }
.sync-explainer p { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.sync-explainer b { color: #263449; font-size: .59rem; }.sync-explainer small { color: #8a96a6; font-size: .52rem; }

.benefit-grid { margin-top: 43px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit-grid article { padding: 24px; border-top: 1px solid rgba(255,255,255,.17); }
.benefit-grid article > span { color: var(--accent); font-size: .68rem; font-weight: 800; }
.benefit-grid h3 { margin: 24px 0 9px; font-size: 1.08rem; }
.benefit-grid p { margin-bottom: 0; color: #8292a9; font-size: .85rem; line-height: 1.55; }

.pricing-section { padding: 105px 0 120px; display: grid; grid-template-columns: 1.2fr .75fr .75fr; gap: 16px; align-items: stretch; }
.pricing-copy { padding: 18px 46px 0 0; }
.pricing-copy p:last-child { max-width: 490px; margin-top: 27px; color: #8c9db3; line-height: 1.65; }
.price-card { min-height: 400px; padding: 28px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #0e1a2c; }
.pro-card { border-color: rgba(67,227,177,.32); background: linear-gradient(160deg, #142c35, #0d1b2c 62%); }
.price-label { color: #8fa0b7; font-size: .7rem; font-weight: 760; text-transform: uppercase; letter-spacing: .1em; }
.price { margin: 25px 0; }
.price strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.price small { color: #788aa2; font-size: .68rem; }
.price-card ul { padding: 0; margin: 5px 0 28px; display: grid; gap: 13px; list-style: none; color: #a9b5c6; font-size: .78rem; }
.price-card li::before { content: "✓"; margin-right: 9px; color: var(--accent); font-weight: 800; }
.price-card .button { width: 100%; margin-top: auto; }

footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; min-height: 116px; display: flex; align-items: center; gap: 34px; border-top: 1px solid var(--line); color: #6f819a; }
.footer-brand { color: #fff; font-size: .95rem; }.footer-brand .brand-mark { width: 24px; height: 24px; }
footer p { flex: 1; margin: 0; font-size: .7rem; }
footer > div { display: flex; gap: 20px; }.footer-link { color: #8496ad; font-weight: 550; }

dialog { width: min(520px, calc(100% - 30px)); padding: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: #101e31; color: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(3,8,15,.76); backdrop-filter: blur(7px); }
dialog h2 { margin-bottom: 16px; font-size: 2rem; line-height: 1.08; letter-spacing: -.04em; }
dialog > p:not(.eyebrow) { color: #95a6bc; font-size: .9rem; line-height: 1.6; }
.dialog-close { position: absolute; right: 18px; top: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: #9cacc0; font-size: 1.3rem; cursor: pointer; }
.dialog-roadmap { margin: 24px 0; display: grid; gap: 8px; }
.dialog-roadmap span { min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: #8fa0b6; font-size: .78rem; }
.dialog-roadmap i { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; font-size: .65rem; font-style: normal; }
.dialog-roadmap .done { color: #d6e0eb; }.dialog-roadmap .done i { border-color: rgba(67,227,177,.3); background: rgba(67,227,177,.1); color: var(--accent); }
.connect-preview { margin: 23px 0; padding: 15px; display: grid; gap: 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.025); }
.connect-field { min-height: 58px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; }
.connect-field span { color: #778aa3; font-size: .66rem; }.connect-field strong { margin-top: 5px; color: #dce5f0; font-size: .78rem; font-weight: 650; }
.connect-field input { width: 100%; margin-top: 6px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: .86rem; }
.connect-field:focus-within { border-color: rgba(67,227,177,.5); background: rgba(67,227,177,.025); }
.auth-tabs { margin: 20px 0 14px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; background: #081422; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: #798ba3; font-size: .76rem; font-weight: 700; cursor: pointer; }
.auth-tabs button.active { background: #1c2d43; color: #fff; }
.auth-form { display: grid; gap: 10px; }
.form-message { min-height: 19px; margin: 2px 0; color: #ff879b; font-size: .7rem; line-height: 1.45; }
.form-message.success { color: var(--accent); }
.auth-note { margin: 15px 0 0 !important; color: #667a94 !important; font-size: .67rem !important; text-align: center; }
#auth-user-email { padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: #dbe5f1; }
#legal-content h2 { font-size: 1.55rem; }
#legal-content h3 { margin: 23px 0 8px; font-size: .95rem; }
#legal-content p, #legal-content li { color: #96a6bb; font-size: .82rem; line-height: 1.55; }
#legal-content ul { padding-left: 18px; }

@media (max-width: 1050px) {
  .calculator-shell { grid-template-columns: 1.25fr .85fr; }
  .field-grid, .finance-grid { grid-template-columns: repeat(2, 1fr); }
  .logistics-grid { grid-template-columns: repeat(2, 1fr); }
  .dimension-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-section { grid-template-columns: 1fr 1fr; }
  .pricing-copy { grid-column: 1 / -1; padding-right: 0; margin-bottom: 24px; }
  .dashboard-demo { grid-template-columns: 150px 1fr; }
  .dashboard-main { padding: 24px 20px; }
}

@media (max-width: 800px) {
  .topbar { width: min(100% - 28px, 1240px); height: 67px; }
  nav { display: none; }
  .calculator-section, .analytics-section, .pricing-section { width: min(100% - 28px, 1240px); }
  .calculator-section { padding-top: 56px; }
  .section-intro, .section-heading-row { grid-template-columns: 1fr; gap: 25px; }
  h1 { font-size: clamp(2.55rem, 12vw, 4.4rem); }
  .intro-copy { font-size: .95rem; }
  .calculator-shell { grid-template-columns: 1fr; }
  .input-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-panel { min-height: 560px; }
  .comparison-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .comparison-heading > p { text-align: left; }
  .dashboard-demo { grid-template-columns: 1fr; transform: none; }
  .dashboard-nav { display: none; }
  .dash-mobile-nav { margin: -4px 0 20px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .dash-mobile-nav::-webkit-scrollbar { display: none; }
  .dash-mobile-nav button { min-width: max-content; height: 34px; padding: 0 11px; border: 1px solid #dce2e9; border-radius: 8px; background: #fff; color: #718096; font-size: .62rem; font-weight: 680; }
  .dash-mobile-nav button.active { border-color: #b4e9d8; background: #e6f7f1; color: #11805e; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-card { min-height: 210px; }
  .sync-explainer { grid-template-columns: auto 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { padding-left: 0; }
  footer { padding: 30px 0; flex-wrap: wrap; }
  footer p { order: 3; flex-basis: 100%; }
}

@media (max-width: 560px) {
  .header-login { padding: 0 14px; }
  .calculator-section { padding-bottom: 70px; }
  .market-switch { align-items: end; }
  .market-tab { padding: 0 15px; }
  .tariff-note { display: none; }
  .calculator-shell { border-radius: 0 16px 16px 16px; }
  .input-panel, .result-panel { padding: 24px 18px; }
  .field-grid, .logistics-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .finance-grid, .tax-grid, .dimension-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .route-grid { grid-template-columns: 1fr; }
  .route-arrow { height: 14px; justify-content: start; transform: rotate(90deg); }
  .route-summary { align-items: flex-start; flex-direction: column; gap: 9px; }
  .route-price { text-align: left; }
  .cluster-comparison { padding: 23px 17px 20px; }
  .comparison-summary { align-items: flex-start; flex-wrap: wrap; gap: 9px 18px; }
  .comparison-summary span:last-child { width: 100%; margin-left: 0; }
  .field { padding-left: 11px; padding-right: 11px; }
  .field > span { font-size: .65rem; }
  .scheme-fieldset { align-items: flex-start; flex-direction: column; gap: 12px; }
  .form-heading.compact { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mode-switch { width: 100%; margin-left: 0; }
  .scheme-fieldset legend { float: none; margin-top: 0; }
  .segmented { width: 100%; }
  .segmented label { flex: 1; }.segmented span { width: 100%; }
  .section-heading-row h2, .pricing-copy h2 { font-size: 2.45rem; }
  .analytics-section { padding: 76px 0; }
  .product-status { grid-template-columns: 1fr auto; }
  .product-status p { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-main { padding: 20px 13px; }
  .dashboard-head { align-items: flex-start; }
  .dash-filters span:last-child { display: none; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpis article { padding: 12px; }.dash-kpis strong { font-size: .85rem; }
  .dash-content-grid { grid-template-columns: 1fr; }
  .alert-card { display: none; }
  .finance-layout { grid-template-columns: 1fr; }
  .finance-total { min-height: 165px; }
  .notice-card { grid-template-columns: 1fr; }
  .sku-row { grid-template-columns: 1.35fr .6fr .65fr; }
  .sku-row span:nth-child(4), .sku-row span:nth-child(5) { display: none; }
  .pricing-section { grid-template-columns: 1fr; padding-top: 76px; }
  .price-card { min-height: 355px; }
  footer > div { width: 100%; }
  dialog { padding: 30px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
