:root { --container: 1180px; --radius: 14px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.65; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 500; top: -80px; left: 20px; padding: 10px 14px; background: var(--primary); color: var(--on-primary); border-radius: 8px; }
.skip-link:focus { top: 20px; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 93%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { --brand-size: 2.875rem; display: inline-flex; align-items: center; gap: 4px; width: max-content; font-family: var(--font-heading); font-weight: 800; }
.brand { color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-body); font-size: var(--menu-size); font-weight: 500; line-height: 1; letter-spacing: .01em; }
.main-nav a { color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.search-shortcut, .theme-button { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.search-shortcut { min-width: 130px; padding: 0 9px 0 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.search-shortcut svg, .theme-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-shortcut span { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.search-shortcut kbd { margin-left: auto; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.theme-button { width: 40px; display: grid; place-items: center; }
.search-shortcut:hover, .theme-button:hover { border-color: var(--gold); color: var(--text); }

.hero { --hero-shift-x: 0px; --hero-shift-y: 0px; position: relative; overflow: hidden; isolation: isolate; background: #0B1F33; color: #fff; padding: 72px 0 64px; }
.hero::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,31,51,.82), rgba(11,31,51,.45) 39%, transparent 72%), linear-gradient(0deg, rgba(11,31,51,.45), transparent 20%); }
.hero-backdrop { position: absolute; z-index: 0; inset: -24px; overflow: hidden; pointer-events: none; transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0); transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.hero-aurora { position: absolute; inset: 0; }
.hero-aurora span { position: absolute; border-radius: 50%; animation: auroraDrift 16s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(1) { width: 80%; height: 135%; top: -74%; right: -8%; background: radial-gradient(ellipse, rgba(212,175,114,.38), rgba(212,175,114,.11) 44%, transparent 70%); }
.hero-aurora span:nth-child(2) { width: 60%; height: 115%; bottom: -65%; right: -11%; background: radial-gradient(ellipse, rgba(212,175,114,.24), rgba(246,230,200,.06) 45%, transparent 70%); animation-delay: -7s; animation-duration: 20s; }
.hero-aurora span:nth-child(3) { width: 45%; height: 80%; top: -47%; left: 24%; background: radial-gradient(ellipse, rgba(246,230,200,.16), transparent 68%); animation-delay: -11s; animation-duration: 24s; }
.hero-perspective { position: absolute; inset: 35% -15% -36% 16%; perspective: 570px; opacity: .36; mask-image: linear-gradient(90deg, transparent, black 45%), linear-gradient(0deg, black, transparent 92%); mask-composite: intersect; }
.hero-perspective > div { position: absolute; inset: -30%; transform: rotateX(62deg) rotateZ(-19deg); background-image: linear-gradient(rgba(212,175,114,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,114,.2) 1px, transparent 1px); background-size: 72px 72px; }
.hero-streams { position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; fill: none; }
.stream-tracks { stroke: url(#streamFade); stroke-width: 1; }
.stream-pulses { stroke: #F6E6C8; stroke-width: 1.8; stroke-linecap: round; }
.stream-pulses path { stroke-dasharray: 48 952; stroke-dashoffset: 1000; animation: streamTravel 11s linear infinite; }
.stream-pulses path:nth-child(2) { stroke: #D4AF72; animation-delay: -6s; animation-duration: 13s; }
.stream-pulses path:nth-child(3) { animation-delay: -2s; animation-duration: 12s; }
.stream-pulses path:nth-child(4) { stroke: #F6E6C8; animation-delay: -8s; animation-duration: 15s; }
.hero-dots { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle, #D4AF72 .8px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 35%, black); }
.hero.is-paused *, .hero.is-paused *::before, .hero.is-paused *::after { animation-play-state: paused !important; }
@keyframes auroraDrift { from { transform: translate3d(-3%,0,0) scale(.95); opacity: .72; } to { transform: translate3d(6%,9%,0) scale(1.12); opacity: 1; } }
@keyframes streamTravel { from { stroke-dashoffset: 1000; opacity: 0; } 12%,85% { opacity: .8; } to { stroke-dashoffset: 0; opacity: 0; } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .68fr); gap: 64px; align-items: center; }
.hero-main { min-width: 0; }
.hero-label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #F6E6C8; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.hero-label span { width: 30px; height: 2px; background: var(--gold); }
.hero h1 { margin: 0; font-family: var(--font-heading); font-size: var(--hero-title); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.hero h1 em { color: #D4AF72; font-style: normal; }
.hero-main > p { max-width: 660px; margin: 22px 0 26px; color: #CBD5E1; font-family: var(--font-body); font-size: var(--hero-copy); font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.search-stage { max-width: 680px; }
.main-search:focus-within { outline: 3px solid #D4AF72; outline-offset: 4px; }
#toolSearch { scroll-margin-top: 100px; }
.main-search { min-height: 66px; display: grid; grid-template-columns: 27px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 0 10px 0 18px; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 16px 45px rgba(0,0,0,.2); }
.main-search svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; }
.main-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.main-search input::placeholder { color: var(--muted); }
.search-hint { color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.main-search button { display: none; border: 0; border-radius: 7px; background: var(--surface-soft); color: var(--text); padding: 7px 9px; cursor: pointer; font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.main-search.has-value button { display: block; }
.quick-links { width: 100%; max-width: 680px; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 18px; }
.quick-links-label { padding-top: 8px; color: #94A3B8; white-space: nowrap; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.quick-links-scroller { min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: scroll; overflow-y: hidden; padding: 0 2px 10px; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #D4AF72 #334155; scroll-padding-inline: 4px; color-scheme: dark; }
.quick-links-scroller::-webkit-scrollbar { height: 8px; }
.quick-links-scroller::-webkit-scrollbar-track { background: #334155; border-radius: 8px; }
.quick-links-scroller::-webkit-scrollbar-thumb { background: #D4AF72; border-radius: 8px; min-width: 36px; }
.quick-links-scroller::-webkit-scrollbar-thumb:hover { background: #F6E6C8; }
.quick-links-scroller:focus-visible { outline: 2px solid #D4AF72; outline-offset: 4px; border-radius: 8px; }
.quick-links-scroller a { flex: 0 0 auto; min-height: 38px; padding: 7px 11px; border: 1px solid rgba(212,175,114,.25); border-radius: 8px; background: rgba(15,42,69,.64); color: #F9FAFB; white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.quick-links-scroller a:hover { border-color: #D4AF72; background: #0F2A45; color: #fff; }
.quick-links-scroller a:focus-visible { outline: 2px solid #F6E6C8; outline-offset: -3px; }
.quick-links-scroller.is-empty { overflow: hidden; padding: 8px 0 0; }
.quick-links-empty { margin: 0; color: #94A3B8; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; color: #CBD5E1; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.hero-trust svg { width: 17px; height: 17px; fill: none; stroke: #D4AF72; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.live-console { position: relative; overflow: hidden; padding: 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: linear-gradient(145deg, rgba(15,42,69,.94), rgba(10,15,26,.88)); box-shadow: 0 34px 100px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.live-console::before { content: ""; position: absolute; width: 240px; height: 240px; right: -120px; bottom: -130px; border-radius: 50%; background: rgba(212,175,114,.3); filter: blur(35px); animation: consoleGlow 7s ease-in-out infinite; }
.console-head { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 5px 12px; border-bottom: 1px solid rgba(255,255,255,.1); color: #94A3B8; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; gap: 12px; flex-wrap: wrap; }
.console-head > span { display: inline-flex; align-items: center; gap: 8px; }
.console-head i { width: 7px; height: 7px; border-radius: 50%; background: #34d7a1; box-shadow: 0 0 0 6px rgba(52,215,161,.09); animation: livePulse 2.2s ease-in-out infinite; }
.console-head small { color: #D4AF72; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.online-spotlight { position: relative; min-height: 180px; display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 16px; padding: 23px 20px; }
.online-spotlight span, .visitor-grid span { display: block; color: #94A3B8; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.online-spotlight strong { display: block; margin: 4px 0 1px; font-family: var(--font-heading); font-size: var(--counter); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.online-spotlight small, .visitor-grid small { color: #94A3B8; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.signal-orbit { position: relative; width: 132px; height: 132px; display: grid; place-items: center; border: 1px solid rgba(212,175,114,.22); border-radius: 50%; animation: ambientSpin 18s linear infinite reverse; }
.signal-orbit::before, .signal-orbit::after { content: ""; position: absolute; border: 1px solid rgba(212,175,114,.15); border-radius: 50%; }
.signal-orbit::before { inset: 17px; }
.signal-orbit::after { inset: 39px; background: radial-gradient(circle, rgba(212,175,114,.28), transparent 70%); }
.signal-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #D4AF72; box-shadow: 0 0 16px currentColor; }
.signal-orbit i:nth-child(1) { top: 7px; left: 63px; }
.signal-orbit i:nth-child(2) { right: 13px; bottom: 31px; background: #34d7a1; }
.signal-orbit i:nth-child(3) { left: 20px; bottom: 24px; background: var(--gold); }
.signal-orbit b { width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 25px rgba(255,255,255,.8); }
.visitor-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visitor-grid > div { min-height: 104px; padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); }
.visitor-grid strong { display: block; margin: 5px 0 2px; font-family: var(--font-heading); font-size: var(--counter-small); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.console-activity { height: 28px; display: flex; align-items: end; gap: 5px; margin: 14px 5px 0; padding: 0 3px; border-bottom: 1px solid rgba(255,255,255,.09); }
.console-activity span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#D4AF72, rgba(212,175,114,.12)); animation: activityBars 3.5s ease-in-out infinite; }
.console-activity span:nth-child(1) { height: 34%; }
.console-activity span:nth-child(2) { height: 62%; animation-delay: -.5s; }
.console-activity span:nth-child(3) { height: 45%; animation-delay: -1s; }
.console-activity span:nth-child(4) { height: 82%; animation-delay: -1.5s; }
.console-activity span:nth-child(5) { height: 53%; animation-delay: -2s; }
.console-activity span:nth-child(6) { height: 72%; animation-delay: -2.5s; }
.console-foot { position: relative; display: flex; justify-content: space-between; gap: 14px; padding: 12px 5px 3px; color: #94A3B8; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; flex-wrap: wrap; }
.console-foot span:first-child { color: #58cfa6; }
@keyframes ambientSpin { to { transform: rotate(360deg); } }
@keyframes livePulse { 0%,100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes consoleGlow { 0%,100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.15); opacity: .9; } }
@keyframes activityBars { 0%,100% { transform: scaleY(.55); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }

.calculator-band { position: relative; z-index: 4; padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 40px rgba(11,23,48,.05); }
.calculator-grid { display: grid; gap: 30px; align-items: center; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr) minmax(0,.75fr); }
.calculator-intro { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; }
.tool-badge { width: 54px; height: 54px; position: relative; display: grid; place-items: center; border-radius: 14px; background: var(--highlight); color: var(--primary); }
html[data-theme="dark"] .tool-badge { background: var(--highlight); }
.tool-badge span { position: absolute; right: -4px; top: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--gold); color: var(--navy); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.tool-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calculator-intro h2 { margin: 3px 0 2px; font-family: var(--font-heading); font-size: var(--card-title); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.calculator-intro p { margin: 0; color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.calculator-form { display: grid; gap: 10px; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr); }
.calculator-form > label { color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; line-height: 1.4; letter-spacing: 0; min-width: 0; }
.calculator-form select, .inline-input { width: 100%; min-height: 43px; margin-top: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); }
.calculator-form select { padding: 0 10px; outline: 0; font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.inline-input { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 11px; }
.inline-input input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.inline-input span { color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.calculator-form select:focus, .inline-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,175,114,.1); }
.calculator-results { display: grid; gap: 5px; padding-left: 24px; border-left: 1px solid var(--line); }
.calculator-results > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.calculator-results span { color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.calculator-results strong { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; line-height: 1.65; letter-spacing: 0; }
.calculator-results .total { padding-top: 5px; border-top: 1px solid var(--line); }
.calculator-results .total strong { color: var(--primary); font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; line-height: 1.35; letter-spacing: 0; }

.popular-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: .85fr repeat(3, 1fr); overflow: hidden; }
.strip-title, .strip-grid > a { border-right: 1px solid var(--line); min-height: 104px; }
.strip-title { display: flex; align-items: center; gap: 12px; background: var(--surface); }
.strip-title span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--surface-soft); color: var(--primary); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.strip-title div { display: grid; gap: 2px; }
.strip-title small { color: var(--muted); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.strip-title strong { font-family: var(--font-heading); font-size: var(--card-title); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.strip-title strong b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; border-radius: 6px; background: var(--surface-soft); color: var(--primary); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.strip-grid > a { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 3px 12px; background: transparent; text-align: left; cursor: pointer; padding: 14px 20px; }
.strip-grid > a:last-child { border-right: 0; }
.strip-grid > a b { grid-column: 1; color: var(--primary); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.strip-grid > a span { grid-column: 1; font-family: var(--font-heading); font-size: var(--card-title); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.strip-grid > a small { grid-column: 1; color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }
.strip-grid > a i { grid-column: 2; grid-row: 1/4; align-self: center; color: var(--muted); font-style: normal; }
.strip-grid > a:hover { background: var(--surface-soft); }
.strip-grid > a:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }

.catalog-section { padding: 76px 0 92px; scroll-margin-top: 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.eyebrow { color: var(--primary); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.eyebrow.light { color: #D4AF72; }
.section-heading h2 { margin: 7px 0 0; font-family: var(--font-heading); font-size: var(--heading-2); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.catalog-stats { display: flex; align-items: center; gap: 10px; }
.catalog-stats button, .catalog-stats > span { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.catalog-stats button { cursor: pointer; }
.catalog-stats button:hover { border-color: var(--primary); color: var(--primary); }
.catalog-stats b { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 5px; background: var(--surface-soft); color: var(--primary); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.category-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category { flex: 0 0 auto; min-height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.category b { margin-left: 5px; color: var(--muted); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.category:hover { border-color: var(--gold); color: var(--text); }
.category.active { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.category.active b { color: inherit; opacity: .8; }
.tool-grid { display: grid; gap: 13px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.tool-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 10px rgba(11,23,48,.025); display: grid; grid-template-rows: auto 1fr auto; gap: 10px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; grid-template-columns: 34px minmax(0,1fr) 30px; min-height: 210px; }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); outline: 0; }
.tool-card.quick-focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(212,175,114,.12), var(--shadow); }
.tool-card { position: relative; grid-template-columns: 34px minmax(0,1fr) 30px; min-height: 210px; }
.tool-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-link:focus-visible { outline: none; }
.tool-link:focus-visible::after { outline: 3px solid var(--primary); outline-offset: 2px; }
.tool-card .favorite { position: relative; z-index: 1; }
.tool-no { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--primary); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.tool-title h3 { margin: 3px 0 7px; font-family: var(--font-heading); font-size: var(--card-title); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.tool-title p { margin: 0; color: var(--muted); font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.65; letter-spacing: 0; }
.favorite { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.favorite:hover { background: var(--surface-soft); color: var(--gold); }
.favorite.active { color: var(--gold); }
.favorite svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite.active svg { fill: currentColor; }
.tool-bottom { grid-column: 2/-1; align-self: end; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tool-meta { display: grid; gap: 7px; }
.tool-use-count { color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.55; font-weight: 400; font-variant-numeric: tabular-nums; }
.tool-cat { color: var(--muted); text-transform: uppercase; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.tool-open { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.tool-open b { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.empty-state { grid-column: 1/-1; min-height: 220px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.65; letter-spacing: 0; }

.workflow-section { padding: 82px 0 94px; background: var(--surface); }
.workflow-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-family: var(--font-body); font-size: var(--text-lg); font-weight: 400; line-height: 1.65; letter-spacing: 0; }
.workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.workflow-card { position: relative; overflow: hidden; min-height: 390px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); display: grid; grid-template-rows: auto auto auto 1fr auto; }
.workflow-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -70px; top: -90px; background: rgba(212,175,114,.08); }
.workflow-card.pdf-flow::after { background: rgba(212,175,114,.1); }
.flow-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--highlight); color: var(--primary); }
html[data-theme="dark"] .flow-icon { background: var(--highlight); }
.pdf-flow .flow-icon { background: var(--surface-soft); color: var(--primary); }
html[data-theme="dark"] .pdf-flow .flow-icon { background: var(--surface-soft); }
.flow-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workflow-card > span { margin-top: 26px; color: var(--primary); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.pdf-flow > span { color: var(--primary); }
.workflow-card h3 { margin: 7px 0 20px; font-family: var(--font-heading); font-size: var(--heading-3); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.workflow-card ol { list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.workflow-card li { counter-increment: steps; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.65; letter-spacing: 0; }
.workflow-card li::before { content: "0" counter(steps); display: inline-block; width: 34px; color: var(--muted); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.workflow-card > button { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; background: var(--primary); color: var(--on-primary); padding: 0 14px; cursor: pointer; font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; min-height: 48px; }
.workflow-card > button:hover { background: var(--button-hover); color: var(--on-hover); }

.security-section { padding: 85px 0; background: var(--navy); color: #fff; }
.security-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.security-copy h2 { margin: 12px 0 20px; font-family: var(--font-heading); font-size: var(--heading-2); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.security-copy p { max-width: 500px; margin: 0; color: #CBD5E1; font-family: var(--font-body); font-size: var(--text-lg); font-weight: 400; line-height: 1.65; letter-spacing: 0; }
.security-points { border-top: 1px solid rgba(255,255,255,.15); }
.security-points > div { display: grid; grid-template-columns: 40px 155px 1fr; gap: 15px; align-items: start; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.security-points span { color: #D4AF72; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; line-height: 1; letter-spacing: .04em; }
.security-points strong { font-family: var(--font-heading); font-size: var(--card-title); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.security-points p { margin: 0; color: #94A3B8; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; }

footer { padding: 45px 0 20px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; align-items: start; gap: 40px; padding-bottom: 44px; }
.footer-main > div > p { margin: 12px 0 0; color: var(--muted); font-family: var(--font-body); font-size: .75rem; font-weight: 500; line-height: 1; letter-spacing: .3em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 24px; color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 11px 15px; border-radius: 9px; background: var(--navy); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .22s; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; line-height: 1.55; letter-spacing: 0; width: max-content; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-main { max-width: 760px; }
  .live-console { max-width: 680px; }
  .calculator-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }
  .calculator-results { grid-column: 1/-1; grid-template-columns: repeat(3,1fr); padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .calculator-results > div { display: grid; gap: 3px; }
  .calculator-results .total { padding-top: 0; border-top: 0; }
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-title { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .security-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 76px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .brand { --brand-size: clamp(1.75rem, calc(16.6667vw - 1.5833rem), 2.5rem); }
  .main-nav { display: none; }
  .header-actions { grid-column: 2; }
  .search-shortcut { min-width: 40px; width: 40px; padding: 0; display: grid; place-items: center; }
  .search-shortcut span, .search-shortcut kbd { display: none; }
  .hero { padding: 46px 0 42px; }
  .hero-backdrop { transform: none; }
  .hero-aurora span:nth-child(1) { width: 130%; height: 85%; top: -33%; right: -60%; }
  .hero-aurora span:nth-child(2) { width: 110%; height: 65%; bottom: -24%; right: -50%; }
  .hero-aurora span:nth-child(3), .hero-perspective, .stream-pulses path:nth-child(even) { display: none; }
  .hero-streams { opacity: .55; }
  .hero-dots { opacity: .12; }
  .quick-links { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .quick-links-label { padding-top: 0; }
  .main-search { grid-template-columns: 24px 1fr auto; min-height: 60px; padding-left: 14px; }
  .search-hint { display: none; }
  .hero-trust { gap: 12px; }
  .live-console { max-width: none; padding: 11px; border-radius: 18px; }
  .online-spotlight { min-height: 150px; grid-template-columns: 1fr 120px; padding: 18px 12px; }
  .signal-orbit { width: 108px; height: 108px; }
  .signal-orbit i:nth-child(1) { left: 51px; }
  .calculator-band { padding: 25px 0; }
  .calculator-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .calculator-form { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr); }
  .calculator-results { grid-column: auto; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > a { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .catalog-section { padding: 58px 0 70px; }
  .section-heading { align-items: start; }
  .catalog-stats > span { display: none; }
  .tool-grid { grid-template-columns: minmax(0,1fr); }
  .tool-card { grid-template-columns: 34px minmax(0,1fr) 30px; min-height: 210px; }
  .workflow-section { padding: 64px 0 72px; }
  .workflow-heading { display: block; }
  .workflow-heading > p { margin-top: 16px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { min-height: 360px; padding: 23px; }
  .security-section { padding: 64px 0; }
  .security-points > div { grid-template-columns: 35px 1fr; }
  .security-points p { grid-column: 2; }
  .footer-main { display: block; }
  .footer-links { margin-top: 32px; justify-content: start; }
}

@media (max-width: 430px) {
  .calculator-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .calculator-form > label:first-child { grid-column: 1/-1; }
  .catalog-stats button { padding-inline: 8px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-backdrop { transform: none !important; transition: none !important; }
  .hero-aurora span, .stream-pulses path { animation: none !important; }
  .stream-pulses { display: none; }
}
