:root {
    --bg: #08121c;
    --panel: #111f2b;
    --line: #29404f;
    --text: #eff7fa;
    --muted: #91a9b8;
    --blue: #27a5e5;
    --blue2: #76ceff;
    --radius: 22px;
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(800px 500px at 80% -10%, #153e58 0%, transparent 65%), var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, [tabindex]:not([tabindex="-1"]) { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #8bd9ff; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .58; }
.app-shell { max-width: 1180px; min-height: 100vh; margin: auto; padding: 0 24px 96px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #1a3343; }
.brand { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--blue), #1460a7); font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small, .muted { color: var(--muted); }
.brand small { margin-top: 2px; font-size: 11px; }
.desktop-nav { display: flex; gap: 24px; }
.desktop-nav a { color: var(--muted); text-decoration: none; }
.desktop-nav a:hover { color: var(--text); }
.profile-button, .ghost, .chip { padding: 10px 14px; color: var(--text); cursor: pointer; border: 1px solid var(--line); border-radius: 12px; background: #122431; }
.profile-button:hover, .ghost:hover, .chip:hover, .brand-card:hover { border-color: var(--blue); }
.language-controls { display: inline-flex; gap: 4px; margin-left: auto; margin-right: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #122431; }
.language-controls button { min-width: 34px; padding: 6px 8px; color: var(--text); cursor: pointer; border: 0; border-radius: 8px; background: transparent; font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.language-controls button:hover, .language-controls button.active { background: #1d526d; }
.language-controls--settings { margin: 0; }
.language-controls--settings button { min-width: auto; }
.language-flag { width: 22px; height: 16px; display: block; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.language-settings { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page { padding: 40px 0; }
.home-head { max-width: 720px; margin: 0 auto 24px; }
.home-head h1 { margin: 14px 0 6px; font-size: clamp(32px, 5vw, 46px); }
.home-head p { margin: 0; color: var(--muted); }
.home-head .ghost { margin-bottom: 12px; }
.home-list { display: grid; max-width: 720px; gap: 14px; margin: auto; }
.home-screen { position: relative; isolation: isolate; min-height: calc(100vh - 178px); padding: clamp(28px, 6vw, 68px) clamp(18px, 5vw, 58px); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(105deg, rgba(4,16,27,.92) 0%, rgba(4,16,27,.71) 51%, rgba(4,16,27,.36) 100%), url('./media/hero-desktop.webp') center / cover; }
.home-screen::before { position: absolute; z-index: -1; inset: 0; content: ''; background: radial-gradient(70% 100% at 0% 55%, rgba(3,12,21,.78), transparent 70%); }
.home-screen .home-head { max-width: 820px; margin: 0 auto 27px; padding: 18px 21px; border: 1px solid rgba(123,202,245,.23); border-radius: 18px; background: rgba(7,27,40,.48); backdrop-filter: blur(11px); }
.home-screen .home-list { max-width: 820px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-screen .home-card { min-height: 132px; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; border-color: rgba(126,202,244,.30); background: linear-gradient(145deg, rgba(19,50,68,.68), rgba(7,23,34,.55)); backdrop-filter: blur(12px); }
.home-screen .home-card:hover { border-color: var(--blue2); background: linear-gradient(145deg, rgba(26,79,105,.79), rgba(9,34,48,.71)); }
.home-screen .home-card img { width: 104px; height: 86px; object-position: 35% 73%; opacity: .92; }
.home-screen .home-card--cri img { transform: translateY(-8px); }
.home-card { display: grid; grid-template-columns: 126px minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 112px; padding: 16px 19px; color: var(--text); cursor: pointer; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(24,49,66,.90), rgba(12,27,38,.95)); text-align: left; transition: .18s ease; }
.home-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.home-card img { width: 126px; height: 80px; object-fit: contain; object-position: 42% 62%; filter: drop-shadow(0 10px 10px rgba(0,0,0,.28)); }
.home-card span { display: grid; gap: 6px; }
.home-card strong { font-size: 18px; }
.home-card small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.home-card b { color: var(--blue2); font-size: 28px; font-weight: 400; }
.section-list .home-card { grid-template-columns: minmax(0, 1fr) auto; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(90deg, rgba(4,19,31,.98) 13%, rgba(4,19,31,.60) 65%, rgba(4,19,31,.20)), url('./media/hero-desktop.webp') center / cover; }
.hero-copy, .hero-stat, .panel, .tool-card, .product-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,49,66,.90), rgba(12,27,38,.95)); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.hero-copy { align-self: center; padding: 24px; background: rgba(5,21,32,.78); backdrop-filter: blur(5px); }
.hero h1 { margin: 12px 0 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.hero-stat { display: flex; flex-direction: column; justify-content: center; padding: 32px; background: rgba(7,27,40,.83); backdrop-filter: blur(5px); }
.hero-stat strong { margin: 9px 0; color: var(--blue2); font-size: 54px; }
.eyebrow { color: var(--blue2); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin: 42px 0 16px; }
.section-head h1, .section-head h2 { margin: 0 0 7px; }
.grid { display: grid; gap: 14px; }
.grid.four, .brand-grid { grid-template-columns: repeat(4, 1fr); }
.tool-card { position: relative; min-height: 185px; padding: 21px; overflow: hidden; color: var(--text); cursor: pointer; text-align: left; }
.tool-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.tool-card img { position: absolute; top: 8px; right: 8px; width: 112px; height: 112px; opacity: .76; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.35)); }
.tool-card strong, .tool-card small, .tool-card .glyph { position: relative; z-index: 1; display: block; }
.tool-card strong { margin: 76px 0 8px; font-size: 18px; }
.tool-card small { color: var(--muted); line-height: 1.4; }
.tool-card .glyph { float: right; color: var(--blue2); font-size: 28px; }
.brand-grid { display: grid; gap: 14px; }
.brand-card { height: 100px; padding: 18px; cursor: pointer; border: 1px solid var(--line); border-radius: 16px; background: #102735; }
.brand-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.decoder-layout, .detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.decoder-layout { margin-top: 28px; }
.decoder-page { max-width: 920px; margin: auto; }
.decoder-header { margin-bottom: 17px; }
.decoder-header h1 { margin: 8px 0 5px; }
.decoder-header p { margin: 0; color: var(--muted); }
.profile-panel { margin: 16px 0 18px; }
.panel-title { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.panel-title h2 { margin: 0; text-transform: uppercase; font-size: 18px; }
.selected-profile { padding: 12px 14px; border: 1px solid #35627a; border-radius: 12px; background: #102b3a; }
.selected-profile p, .profile-results span { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.selected-profile em, .profile-results em { color: var(--blue2); font-style: normal; }
.profile-results { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.profile-results button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; color: var(--text); cursor: pointer; border: 0; border-bottom: 1px solid var(--line); background: #10212d; text-align: left; }
.profile-results button:last-child { border-bottom: 0; }
.profile-results button:hover { background: #143244; }
.profile-results button span { grid-row: 2; }
.profile-results button b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--blue2); font-size: 22px; }
.profile-results .replacement-label { grid-column: 1; color: var(--blue2); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.profile-results .replacement-label + strong { grid-column: 1; }
.profile-results .replacement-label ~ b { grid-row: 1 / 4; }
.replacement-notice { display: grid; gap: 4px; margin-top: 12px; padding: 11px 13px; border: 1px solid #2388c4; border-radius: 12px; background: rgba(32,156,222,.12); color: var(--text); }
.replacement-notice span { color: var(--blue2); font-size: 13px; }
.editor-note { margin: 18px 0 0; font-size: 13px; }
.editor-page { max-width: 820px; margin: auto; }
.editor-code { display: grid; gap: 5px; margin-bottom: 18px; padding: 16px; border: 1px solid #35627a; border-radius: 14px; background: #0d2532; text-align: center; }
.editor-code span { color: var(--muted); font-size: 13px; }
.editor-code strong { color: var(--blue2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 25px; letter-spacing: .08em; }
.editor-parameters { display: grid; gap: 8px; }
.editor-row { display: grid; grid-template-columns: minmax(160px, 1fr) 48px minmax(78px, auto) 48px; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #10212d; }
.editor-row span { display: grid; gap: 2px; }
.editor-row small { color: var(--muted); }
.editor-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.success { padding: 13px 15px; color: #b8ffd1; border-radius: 12px; background: #123d2a; }
.panel { padding: 24px; }
.panel h2 { margin-top: 0; }
.maker-row, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip.active { color: #05121a; border-color: var(--blue); background: var(--blue); }
.field { display: grid; gap: 7px; margin: 15px 0; }
.input { width: 100%; padding: 13px 14px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: #0b1822; }
.primary { padding: 13px 18px; color: #fff; cursor: pointer; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--blue), #1978be); font-weight: 750; }
.primary:hover { filter: brightness(1.1); }
.result-empty { display: grid; min-height: 250px; place-items: center; color: var(--muted); text-align: center; }
.metrics { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.metric { display: flex; gap: 15px; justify-content: space-between; padding: 12px 14px; background: #10212d; }
.metric span { color: var(--muted); }
.metric strong { text-align: right; }
.result-heading { margin: 20px 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.estimate-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.estimate { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #10212d; }
.estimate:last-child { border-bottom: 0; }
.estimate > div { display: grid; gap: 3px; }
.estimate > div:last-child { justify-items: end; text-align: right; }
.estimate b { color: var(--blue2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; }
.estimate small { color: var(--muted); font-size: 12px; }
.delivery-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.delivery-row { display: grid; grid-template-columns: minmax(150px, 1.45fr) minmax(90px, .78fr) minmax(90px, .74fr) minmax(105px, .9fr); gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #10212d; font-size: 14px; }
.delivery-row:last-child { border-bottom: 0; }
.delivery-row > span { display: grid; gap: 3px; }
.delivery-row small { color: var(--muted); font-size: 12px; }
.delivery-row > b:not(:first-child) { justify-self: end; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 650; text-align: right; }
.delivery-head { color: #d9f0fb; background: #1a536f; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.delivery-head > span:not(:first-child) { justify-self: end; text-align: right; }
.delivery-value { color: var(--blue2); }
.delivery-note { margin: 10px 2px 0; font-size: 12px; line-height: 1.4; }
.catalog-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 20px; }
.sidebar { display: grid; gap: 8px; align-content: start; }
.sidebar button { width: 100%; text-align: left; }
.searchbar { display: flex; gap: 8px; margin-bottom: 16px; }
.searchbar .input { flex: 1; }
.product-list { display: grid; gap: 10px; }
.product-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 17px; cursor: pointer; }
.product-card:hover { border-color: var(--blue); }
.plan-card { color: var(--text); text-decoration: none; }
.number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 750; }
.product-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.badge { align-self: center; color: var(--blue2); font-size: 13px; }
.empty { padding: 42px 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty strong { display: block; color: var(--text); font-size: 17px; }
.empty p { max-width: 520px; margin: 9px auto 0; line-height: 1.5; }
.detail-header { display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.detail-header h1 { margin: 8px 0; }
.wide { grid-column: 1 / -1; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-grid a { padding: 12px; color: var(--text); border: 1px solid var(--line); border-radius: 14px; background: #0b1822; text-decoration: none; }
.media-grid img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; }
.media-preview { display: block; width: 100%; padding: 7px; cursor: zoom-in; border: 1px solid var(--line); border-radius: 14px; background: #0b1822; }
.media-preview:hover { border-color: var(--blue); }
.vd-parts-link { display: inline-block; margin-top: 10px; color: var(--blue2); font-size: 13px; font-weight: 700; text-decoration: none; }
.vd-parts-link:hover { color: #fff; text-decoration: underline; }
.part-metric strong { display: grid; justify-items: end; }
.part-metric .vd-parts-link { margin-top: 5px; }
.replacement-static { cursor: default; }
.replacement-static:hover { border-color: var(--line); }
.replacement-static .vd-parts-link { align-self: center; margin-top: 0; }
.image-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(1,10,17,.83); backdrop-filter: blur(8px); }
.image-modal-frame { position: relative; max-width: min(100%, 1080px); max-height: 90vh; padding: 14px; border: 1px solid #426a80; border-radius: var(--radius); background: linear-gradient(145deg, #17384c, #091924); box-shadow: 0 24px 80px rgba(0,0,0,.64); }
.image-modal-frame img { display: block; max-width: 100%; max-height: calc(90vh - 72px); border-radius: 12px; object-fit: contain; }
.image-modal-frame p { margin: 10px 4px 0; color: var(--muted); font-size: 13px; word-break: break-word; }
.image-modal-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; color: var(--text); cursor: pointer; border: 1px solid #587589; border-radius: 50%; background: #102938; font-size: 30px; line-height: 1; }
.image-modal-close:hover { border-color: var(--blue2); background: #17445c; }
.pcv-lead { max-width: 730px; }
.replacement { padding-left: 14px; border-left: 3px solid var(--blue); }
.alert { padding: 13px 15px; color: #ffd5a7; border-radius: 12px; background: #422718; }
.account-panel { max-width: 680px; margin: 0 auto; }
.subscription-box { display: grid; gap: 10px; margin: 18px 0; padding: 17px; border: 1px solid #35627a; border-radius: 15px; background: #0d2532; }
.subscription-box p { margin: 0; }
.subscription-box .ghost { justify-self: start; }
.subscription-page { max-width: 980px; margin: 0 auto; }
.subscription-hero { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; margin-bottom: 18px; border-color: #3b7799; background: linear-gradient(130deg, rgba(28,93,128,.84), rgba(12,31,45,.95)); }
.subscription-hero > div { display: grid; gap: 2px; }
.subscription-hero > p { flex: 1 1 220px; margin: 0; color: #d4edf9; }
.subscription-price { color: #fff; font-size: clamp(40px, 7vw, 64px); line-height: 1; }
.subscription-hero span { color: var(--blue2); }
.subscription-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.subscription-grid h2 { margin-bottom: 12px; }
.subscription-plans { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px; width: min(100%, 470px); }
.plan-card { display: grid; gap: 6px; padding: 14px; border: 1px solid #3b7799; border-radius: 13px; background: rgba(5,21,33,.42); }
.plan-card.featured { border-color: var(--blue2); background: rgba(25,120,174,.2); }
.plan-card strong { color: #fff; font-size: 28px; }
.plan-card span, .plan-card small { color: var(--muted); }
.plan-card button { margin-top: 5px; }
.check-list, .steps-list { display: grid; gap: 11px; margin: 0; padding-left: 22px; line-height: 1.45; }
.check-list li::marker { color: var(--blue2); }
.legal-page { max-width: 780px; margin: 0 auto; }
.legal-page h1 { margin: 10px 0 22px; }
.legal-copy { display: grid; gap: 10px; color: #d7e7ee; line-height: 1.62; }
.legal-copy p { margin: 0; }
.site-footer { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 36px; padding: 20px 2px 6px; border-top: 1px solid #1a3343; }
.site-footer a { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-footer a:hover { color: var(--blue2); text-decoration: underline; }
.demo-notice { margin: 0 0 15px; }

.cri-landing { display: grid; gap: 22px; min-height: min(690px, calc(100vh - 145px)); padding: clamp(18px,3vw,38px); border: 1px solid #36596c; border-radius: 24px; background: radial-gradient(circle at 50% 50%, rgba(44,143,185,.27), transparent 35%), linear-gradient(145deg,#0b2432,#06131d); }
.cri-landing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cri-landing-head h1 { margin: 5px 0; font-size: clamp(34px,5vw,62px); letter-spacing: .06em; }
.cri-landing-head p { margin: 0; color: var(--muted); }
.cri-brand-switchboard { display: grid; grid-template-columns: minmax(190px,1fr) minmax(240px,1.35fr) minmax(190px,1fr); align-items: center; gap: clamp(14px,3vw,46px); flex: 1; }
.cri-brand-column { display: grid; gap: 13px; }
.cri-brand-center { display: grid; place-items: center; min-height: 300px; padding: 30px; text-align: center; border: 1px solid rgba(102,195,233,.27); border-radius: 50%; background: radial-gradient(circle,rgba(25,122,165,.32),rgba(8,30,43,.08) 70%); }
.cri-brand-mark { color: #e8f8ff; font-size: clamp(44px,7vw,90px); font-weight: 800; line-height: .9; letter-spacing: .03em; }
.cri-brand-mark span { color: var(--blue2); font-size: .48em; vertical-align: middle; }
.cri-brand-center p { max-width: 260px; margin: 18px 0 0; color: #c5e2ef; line-height: 1.45; }
.cri-group-card, .cri-type-card, .cri-injector-card { display: grid; gap: 5px; width: 100%; padding: 18px; color: var(--text); cursor: pointer; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #102b3a, #0b1c28); text-align: left; }
.cri-group-card { min-height: 76px; grid-template-columns: 1fr auto; align-items: center; border-color: #32779a; background: linear-gradient(90deg,#17465d,#0e2735); }
.cri-group-copy { display: grid; gap: 5px; min-width: 0; }
.cri-group-card--logo { position: relative; overflow: hidden; background: #102d3d; }
.cri-group-card--logo .cri-group-logo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .76; filter: brightness(.62) saturate(.88); }
.cri-group-card--logo .cri-group-copy, .cri-group-card--logo b { position: relative; z-index: 1; }
.cri-group-card--logo strong, .cri-group-card--logo small, .cri-group-card--logo b { text-shadow: 0 1px 3px rgba(0,0,0,.86); }
.cri-group-card strong { font-size: 20px; }
.cri-group-card small, .cri-type-card small, .cri-injector-card small { color: var(--muted); }
.cri-group-card b, .cri-type-card b, .cri-injector-card b { color: var(--blue2); font-size: 18px; }
.cri-group-card:hover, .cri-type-card:hover, .cri-injector-card:hover { border-color: var(--blue); background: #143447; }
.cri-type-card, .cri-injector-card { grid-template-columns: 1fr auto; align-items: center; }
.cri-type-card strong, .cri-injector-card strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; }
.cri-card-grid { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 18px; }
.cri-instruction { grid-column: 1 / -1; line-height: 1.58; }
.cri-instruction h3 { margin: 24px 0 10px; font-size: 18px; }
.cri-instruction p { white-space: pre-line; }
.cri-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cri-tabs .chip { cursor: pointer; }
.cri-parameters { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.cri-parameter { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #10212d; }
.cri-parameter:last-child { border-bottom: 0; }
.cri-parameter span { color: var(--blue2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-align: right; }
.cri-warning { margin: 16px 0; padding: 14px; color: #ffe2a7; border-left: 3px solid #e6a24f; border-radius: 0 12px 12px 0; background: #422f1b; white-space: pre-line; }
.cri-instruction-image { display: block; width: min(100%, 760px); max-height: 620px; margin: 14px 0; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: #07131c; }
.cri-calc-open { align-self: center; padding: 7px 10px; font-size: 12px; }
.cri-calc-modal { position: fixed; z-index: 210; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(1,10,17,.76); backdrop-filter: blur(8px); }
.cri-calc-modal-card { position: relative; width: min(100%, 540px); padding: 28px; border: 1px solid #426a80; border-radius: 18px; background: linear-gradient(145deg,#17384c,#091924); box-shadow: 0 24px 80px rgba(0,0,0,.64); }
.cri-calc-form h2 { margin: 0 30px 8px 0; }
.cri-calc-form > p { margin: 0 0 18px; line-height: 1.45; }
.cri-calc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cri-calc-result { display: grid; gap: 3px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #10212d; color: var(--muted); }
.cri-calc-result strong { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; }
.cri-calc-result small { color: var(--muted); }
.cri-calc-result.is-valid { border-color: #2c9b6c; background: #103126; color: #bcebcf; }
.cri-calc-result.is-valid strong, .cri-calc-result.is-valid small { color: #bcebcf; }
.cri-calc-result.is-warning { border-color: #b6853d; background: #422f1b; color: #ffe2a7; }
.cri-calc-result.is-warning strong, .cri-calc-result.is-warning small { color: #ffe2a7; }
.cri-schemes { grid-column: 1 / -1; }
.cri-schemes > div { display: flex; flex-wrap: wrap; gap: 14px; }
.cri-scheme-image { width: min(100%, 390px); max-height: 390px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: #07131c; }
.cri-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 14px 16px; border: 1px solid #31576b; border-radius: 15px; background: #102c3a; }
.cri-workspace-head > div:first-child { display: grid; gap: 3px; font-size: 14px; }
.cri-workspace-head small { color: var(--muted); }
.cri-workspace-head > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cri-workspace { display: grid; grid-template-columns: minmax(135px,.28fr) minmax(360px,1fr) minmax(240px,.44fr); min-height: min(690px,calc(100vh - 210px)); overflow: hidden; border: 1px solid #31576b; border-radius: 18px; background: #0a1c27; }
.cri-step-list { display: grid; align-content: start; max-height: calc(100vh - 210px); overflow-y: auto; border-right: 1px solid #31576b; background: #102c3a; }
.cri-step-list button { min-height: 48px; padding: 11px 13px; color: #d9eaf1; cursor: pointer; border: 0; border-bottom: 1px solid rgba(102,170,199,.2); background: transparent; text-align: left; font-weight: 700; }
.cri-step-list button:hover, .cri-step-list button.active { color: #071a24; background: var(--blue2); }
.cri-work-instruction { max-height: calc(100vh - 210px); overflow-y: auto; padding: clamp(20px,3vw,46px); color: #e7f0f4; line-height: 1.56; }
.cri-work-instruction h2 { margin: 0 0 24px; font-size: clamp(20px,2.2vw,29px); }
.cri-work-instruction h3 { margin: 26px 0 12px; font-size: 18px; }
.cri-work-instruction p { white-space: pre-line; }
.cri-work-instruction .cri-instruction-image { width: min(100%,520px); max-height: none; margin: 20px 0; }
.cri-work-context { display: grid; align-content: start; max-height: calc(100vh - 210px); overflow-y: auto; padding: 26px 18px; border-left: 1px solid #31576b; background: #0d2430; }
.cri-context-scheme { display: grid; gap: 10px; width: 100%; padding: 0; color: var(--muted); cursor: zoom-in; border: 0; background: transparent; text-align: center; }
.cri-context-scheme img { width: 100%; max-height: 460px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #f7fbfc; }
.cri-context-scheme small { color: var(--muted); }
.cri-side-calculator { padding: 2px; }
.cri-side-calculator .cri-calc-inputs { grid-template-columns: 1fr; }
.cri-side-calculator .cri-calc-form h2 { font-size: 20px; }

.auth-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(1,10,17,.72); backdrop-filter: blur(9px); }
.auth-modal-card { position: relative; width: min(100%, 460px); padding: 32px; border: 1px solid #426a80; border-radius: var(--radius); background: linear-gradient(145deg, #17384c, #091924); box-shadow: 0 24px 80px rgba(0,0,0,.64); }
.auth-modal-card h2 { margin: 10px 0; font-size: clamp(25px,4vw,34px); }
.auth-modal-card p { color: var(--muted); line-height: 1.5; }
.auth-modal-card small { display: block; margin-top: 14px; color: var(--muted); line-height: 1.4; }
.auth-modal-vk, .auth-modal-password, .auth-modal-guest { width: 100%; min-height: 56px; margin-top: 12px; }
.auth-modal-actions { display: grid; gap: 10px; margin-top: 18px; }
.auth-modal-actions > button { width: 100%; min-height: 48px; }
.auth-modal-content .input { width: 100%; margin-top: 10px; }
.auth-modal-content .ghost { margin-top: 12px; }
.auth-modal-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; color: var(--text); cursor: pointer; background: transparent; font-size: 30px; line-height: 1; }
.auth-modal-close:hover { color: var(--blue2); }
.admin-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.admin-list { display: grid; gap: 10px; margin-top: 14px; }
.admin-user, .admin-product { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #10212d; }
.admin-user small, .admin-product small { color: var(--muted); }
.admin-user-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; align-items: end; margin-top: 8px; }
.admin-user-actions .input, .admin-user-actions button { width: 100%; min-width: 0; min-height: 48px; }
.admin-user-actions .input { padding: 9px 10px; }
.admin-control { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; }
.admin-control .input { color: var(--text); }
.admin-credentials { margin-top: 4px; color: var(--muted); }
.admin-credentials summary { cursor: pointer; color: var(--blue2); }
.admin-credential-form { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(170px, 1.35fr) auto; gap: 8px; margin-top: 10px; }
.admin-credential-form button { min-height: 42px; }
.admin-create-user { margin: 12px 0 14px; }
.admin-create-user summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; cursor: pointer; list-style: none; color: #fff; border-radius: 12px; background: linear-gradient(135deg, var(--blue2), var(--blue)); font-weight: 700; }
.admin-create-user summary::-webkit-details-marker { display: none; }
.admin-create-user > form { display: none; }
.admin-create-modal-card { width: min(100%, 560px); }
.admin-create-modal-form { display: grid; gap: 12px; margin-top: 20px; }
.admin-create-modal-form .field { display: grid; gap: 6px; color: var(--muted); }
.admin-create-modal-form .input { width: 100%; }
.admin-product { width: 100%; color: var(--text); cursor: pointer; text-align: left; }
.admin-product:hover { border-color: var(--blue); background: #143244; }
.admin-product b { color: var(--blue2); font-size: 13px; }
.admin-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(142px, .55fr) auto; gap: 8px; margin-top: 15px; }
.textarea { min-height: 92px; resize: vertical; }
.danger { color: #ffabab; }
.danger:hover { border-color: #e45a5a; }
.toast { position: fixed; bottom: 90px; left: 50%; padding: 12px 16px; color: #082032; pointer-events: none; opacity: 0; border-radius: 11px; background: #eaf7ff; transform: translate(-50%,20px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: none; justify-content: space-around; border-top: 1px solid var(--line); background: rgba(8,18,28,.95); backdrop-filter: blur(16px); }
.bottom-nav button { display: grid; gap: 3px; padding: 12px 4px; color: var(--muted); border: 0; background: transparent; font-size: 11px; }
.bottom-nav span { font-size: 20px; }
.loading { padding: 32px; color: var(--muted); }
.delphi-charts { display: grid; gap: 16px; margin-top: 16px; }
.delphi-chart { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #102735, #0a1923); }
.delphi-chart h3 { margin: 0 0 10px; font-size: 17px; }
.delphi-chart svg { display: block; width: 100%; overflow: visible; border: 1px solid #28495d; border-radius: 10px; background: #0a1821; }
.chart-axis { stroke: #426071; fill: none; stroke-width: 1; }
.chart-reference { stroke: #f6a24d; fill: none; stroke-width: 2; stroke-dasharray: 7 5; }
.chart-calculated { stroke: #39b7f2; fill: none; stroke-width: 3; }
.delphi-chart text { fill: var(--muted); font-size: 10px; }
.delphi-chart p { display: flex; gap: 14px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.legend-ref { color: #f6a24d; }
.legend-calc { color: #54c9ff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 760px) {
    .app-shell { padding: 0 16px 82px; }
    .topbar { height: 68px; }
    .desktop-nav { display: none; }
    .profile-button { padding: 8px 10px; }
    .page { padding: 24px 0; }
    .home-screen { min-height: calc(100vh - 150px); margin: -24px -16px 0; padding: 220px 16px 26px; border-width: 0; border-radius: 0; background-image: linear-gradient(180deg, rgba(4,16,27,.12), rgba(4,16,27,.78) 45%, rgba(4,16,27,.95)), url('./media/hero-mobile.webp'); background-position: center top; }
    .home-screen .home-head { margin-bottom: 15px; padding: 15px 16px; background: rgba(7,27,40,.54); }
    .home-screen .home-list { grid-template-columns: 1fr; gap: 10px; }
    .home-screen .home-card { min-height: 88px; grid-template-columns: 83px minmax(0, 1fr) auto; gap: 10px; padding: 11px 13px; background: linear-gradient(145deg, rgba(19,50,68,.65), rgba(7,23,34,.49)); }
    .home-screen .home-card img { width: 83px; height: 63px; object-position: 32% 76%; }
    .hero, .decoder-layout, .catalog-layout, .detail-grid, .cri-card-grid { grid-template-columns: 1fr; }
    .hero { padding: 18px; background-image: linear-gradient(180deg, rgba(4,19,31,.45), rgba(4,19,31,.97) 70%), url('./media/hero-mobile.webp'); background-position: center top; }
    .hero-copy { padding: 22px; margin-top: 190px; }
    .hero-stat { padding: 22px; }
    .grid.four { grid-template-columns: 1fr 1fr; }
    .tool-card { min-height: 145px; padding: 15px; }
    .tool-card img { top: 7px; right: 4px; width: 80px; height: 80px; }
    .tool-card strong { margin-top: 54px; font-size: 16px; }
    .home-card { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 11px; min-height: 96px; padding: 13px; }
    .home-card img { width: 92px; height: 64px; object-position: 40% 64%; }
    .home-card strong { font-size: 16px; }
    .home-card small { font-size: 12px; }
    .editor-row { grid-template-columns: minmax(120px, 1fr) 42px 72px 42px; gap: 6px; padding: 9px; font-size: 13px; }
    .brand-grid { grid-template-columns: 1fr 1fr; }
    .brand-card { height: 76px; padding: 13px; }
    .sidebar { grid-template-columns: repeat(2,1fr); }
    .section-head { margin-top: 28px; }
    .bottom-nav { display: flex; }
    .detail-grid .wide { grid-column: auto; }
    .delivery-table { overflow-x: auto; }
    .delivery-row { min-width: 590px; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-search { grid-template-columns: 1fr; }
    .admin-user-actions { grid-template-columns: 1fr; }
    .admin-credential-form { grid-template-columns: 1fr; }
    .admin-create-form { grid-template-columns: 1fr; }
    .subscription-grid { grid-template-columns: 1fr; }
    .subscription-hero { align-items: flex-start; flex-direction: column; }
    .subscription-plans { width: 100%; grid-template-columns: 1fr; }
    .site-footer { padding-bottom: 10px; }
    .image-modal { padding: 16px; }
    .image-modal-close { top: 12px; right: 12px; }
    .cri-landing { margin: -8px -4px 0; padding: 18px; border-radius: 18px; }
    .cri-landing-head { align-items: flex-start; flex-direction: column-reverse; }
    .cri-brand-switchboard { grid-template-columns: 1fr; gap: 14px; }
    .cri-brand-column { gap: 9px; }
    .cri-brand-center { order: -1; min-height: 165px; padding: 18px; border-radius: 20px; }
    .cri-brand-mark { font-size: 52px; }
    .cri-brand-center p { margin-top: 9px; font-size: 13px; }
    .cri-group-card { min-height: 66px; padding: 13px; }
    .cri-calc-modal { padding: 14px; }
    .cri-calc-modal-card { padding: 22px 18px; }
    .cri-workspace-head { align-items: flex-start; flex-direction: column; }
    .cri-workspace-head > div:last-child { justify-content: flex-start; }
    .cri-workspace { grid-template-columns: 1fr; min-height: 0; overflow: visible; }
    .cri-step-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid #31576b; }
    .cri-step-list button { flex: 0 0 auto; min-height: 44px; border-right: 1px solid rgba(102,170,199,.2); border-bottom: 0; }
    .cri-work-instruction, .cri-work-context { max-height: none; overflow: visible; }
    .cri-work-instruction { padding: 23px 18px; }
    .cri-work-context { padding: 18px; border-top: 1px solid #31576b; border-left: 0; }
}
