:root {
    color-scheme: light;
    --ink: #102344;
    --muted: #49607c;
    --blue: #1458d8;
    --line: #d9e5f3;
    --paper: #fff;
    --wash: #f4f7fb;
    --header: 74px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden], html:not([data-platform="android"]) [data-android], html:not([data-platform="desktop"]) [data-desktop] { display: none !important; }
html:is([data-platform="android"], [data-platform="desktop"]) [data-app-info],
html[data-platform="mobile"] .end-app { display: none; }
html { scroll-padding-top: calc(var(--header) + 18px); }
body { margin: 0; background: var(--wash); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: Manrope, Inter, system-ui, sans-serif; }
a { color: var(--blue); text-underline-offset: .22em; }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #2775e4; outline-offset: 3px; }
.container { width: min(100% - 64px, 1200px); margin-inline: auto; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { flex: none; color: #131e31; font-size: 24px; font-weight: 800; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.brand span { color: #087cff; }
.brand small { color: #596d84; font-size: .8em; }
.site-menu { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 24px); }
.site-menu a { padding-block: 12px; color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.site-menu a:hover, .site-menu a[aria-current] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 22px; }
.button, .qr-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #1049b4; }
.secondary, .qr-button { border-color: var(--line); background: white; color: var(--blue); }
.qr-button:hover, .secondary:hover { border-color: #8eafe6; background: #f3f8ff; }
.qr-button img, .qr-brand { display: block; height: auto; }
.search-hero { padding: 22px 0 29px; border-bottom: 1px solid var(--line); background: #eaf3ff; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--muted); font-size: .82rem; }
.breadcrumbs i { font-size: .7rem; }
.search-hero h1 { max-width: 920px; font-size: clamp(2rem, 4.4vw, 3.35rem); letter-spacing: -.045em; line-height: 1.1; }
.hero-summary { margin-top: 11px; color: #385574; font-size: 1rem; }
.hero-summary strong { color: var(--ink); font-weight: 750; }
.search-form { max-width: 920px; margin-top: 19px; }
.search-control { display: flex; min-width: 0; align-items: center; gap: 5px; padding: 4px; border: 1px solid #abc6e9; border-radius: 12px; background: white; }
.search-control:focus-within { border-color: #3174df; box-shadow: 0 0 0 3px #cadfff; }
.search-control > i { flex: none; margin-left: 10px; color: var(--blue); font-size: 17px; }
.search-control input { flex: 1; min-width: 0; padding: 8px 5px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.search-control input:focus-visible { outline: none; }
.search-control input::-webkit-search-cancel-button { display: none; }
.search-control input::placeholder { color: #516886; }
.clear-search { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: #eff5fc; color: var(--muted); }
.search-submit { flex: none; padding-inline: 16px; }
.search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: .83rem; }
.search-examples > span { margin-right: 3px; }
.search-examples button { min-height: 44px; padding: 3px 10px; border: 1px solid #d1e1f4; border-radius: 9px; background: #f9fcff; color: #194c99; font-size: .82rem; font-weight: 750; }
.search-examples button:hover { border-color: #80a9e7; }
.hero-app { display: flex; align-items: center; gap: 8px 15px; justify-content: space-between; max-width: 360px; margin-top: 13px; color: #334e70; font-size: .82rem; font-weight: 650; }
.store-badge { display: inline-flex; flex: none; align-items: center; min-height: 44px; border-radius: 6px; text-decoration: none; }
.store-badge img { display: block; width: 158px; max-width: 100%; height: auto; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 25px; padding-block: 26px 38px; }
.category-picker { display: none; }
.catalog-sidebar { position: sticky; top: calc(var(--header) + 16px); padding: 13px 10px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.catalog-sidebar h2 { padding: 0 8px 7px; font-size: .94rem; }
.category-links a { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 7px; align-items: center; min-height: 44px; padding: 5px 8px; border-radius: 7px; color: var(--ink); font-size: .84rem; font-weight: 620; line-height: 1.3; text-decoration: none; }
.category-links a:hover, .category-links a[aria-current] { background: #eaf3ff; color: var(--blue); }
.category-links i { color: var(--blue); }
.category-links small { color: var(--muted); font-size: .77rem; }
.catalog-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.catalog-header h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.result-count { color: var(--muted); font-size: .85rem; text-align: right; }
.category + .category { margin-top: 26px; }
.category-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; margin-bottom: 11px; }
.category-header h3 { font-size: 1.18rem; line-height: 1.2; }
.category-header p { margin-top: 3px; color: var(--muted); font-size: .83rem; }
.category-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #e6effd; color: var(--blue); font-size: 18px; }
.category-count { padding: 3px 9px; border-radius: 999px; background: #e8eff9; color: #36567e; font-size: .78rem; font-weight: 700; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.tool-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 11px 12px 5px; border: 1px solid var(--line); border-radius: 10px; background: white; scroll-margin-top: 5px; }
.tool-card:has(.tool-link:hover) { border-color: #9bbbed; background: #fbfdff; }
.tool-card:has(.tool-link:focus-visible) { outline: 3px solid #2775e4; outline-offset: 2px; }
.tool-card:target { border-color: #6a99e4; box-shadow: 0 0 0 3px #d9e9ff; }
.tool-card h4 { font-size: .94rem; line-height: 1.3; overflow-wrap: anywhere; }
.tool-card p { margin: 3px 0 1px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.tool-action { margin-top: auto; }
.tool-link, [data-app-info] { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: .78rem; line-height: 1.2; }
.tool-link { font-weight: 650; text-decoration: none; }
.tool-link::after { position: absolute; inset: 0; border-radius: 10px; content: ""; }
.tool-link:focus-visible { outline: none; }
.tool-online { color: var(--blue); font-weight: 750; }
.tool-link:hover { color: var(--blue); text-decoration: underline; }
.empty-search { padding: 26px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.empty-search > i { font-size: 23px; color: var(--blue); }
.empty-search p { margin: 6px 0 13px; color: var(--muted); }
.catalog-faq { padding: 0 0 26px; }
.catalog-faq h2 { margin-bottom: 12px; font-size: 1.45rem; }
.catalog-faq details { padding: 0 14px; border: 1px solid var(--line); border-bottom: 0; background: white; }
.catalog-faq details:first-of-type { border-radius: 10px 10px 0 0; }
.catalog-faq details:last-of-type { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.catalog-faq summary { min-height: 44px; padding-block: 11px; font-weight: 700; cursor: pointer; }
.catalog-faq p { margin: 0 0 12px; color: var(--muted); }
.end-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; margin-block: 14px 23px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #eaf3ff; }
.end-app h2 { font-size: 1.25rem; }
.end-app p { margin-top: 3px; color: var(--muted); }
.offline-actions { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.offline-qr { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border: 1px solid #d3dfef; border-radius: 9px; background: #f9fcff; color: var(--ink); font-size: .8rem; font-weight: 700; }
.offline-qr img { position: relative; display: block; border-radius: 5px; background: white; image-rendering: pixelated; transition: transform 180ms ease; transform-origin: right center; }
@media (hover: hover) and (pointer: fine) {
    .offline-qr:hover img { z-index: 2; transform: scale(1.65); box-shadow: 0 4px 16px #10234444; }
}
@media (prefers-reduced-motion: reduce) {
    .offline-qr img { transition: none; }
}
.site-footer { padding-block: 19px 22px; border-top: 1px solid var(--line); background: white; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-block: 9px; font-size: .82rem; }
.site-footer p { color: var(--muted); font-size: .78rem; }
.mobile-app-dock { position: fixed; z-index: 25; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px max(12px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: #f9fcff; box-shadow: 0 -4px 20px #12295114; color: #334e70; font-size: .82rem; font-weight: 650; }
.mobile-app-dock strong, .mobile-app-dock span { display: block; line-height: 1.25; }
.mobile-app-dock span { margin-top: 2px; color: var(--muted); font-weight: 500; }
body.has-app-dock { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.qr-dialog { width: min(380px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 23px 20px 19px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink); text-align: center; }
.qr-dialog::backdrop { background: #10234483; }
.qr-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: #f1f6ff; }
.qr-brand { margin: 0 auto 9px; }
.qr-dialog h2 { font-size: 1.22rem; }
.qr-dialog p { margin: 5px auto; max-width: 270px; color: var(--muted); font-size: .87rem; }
.qr-image { display: block; margin: 1px auto 5px; max-width: 100%; height: auto; image-rendering: pixelated; }
.category-dialog { position: fixed; inset: auto 0 0; width: min(100%, 500px); max-width: none; max-height: calc(100dvh - 22px); margin: 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 16px 16px 0 0; color: var(--ink); background: white; }
.category-dialog::backdrop { background: #10234480; }
.category-dialog-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--line); background: white; }
.category-dialog h2 { font-size: 1.15rem; }
.category-dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #f4f8ff; color: var(--blue); }
.category-dialog .category-links { display: grid; gap: 5px; padding: 9px 12px calc(12px + env(safe-area-inset-bottom)); }
.category-dialog .category-links a { grid-template-columns: 21px minmax(0, 1fr) auto; min-height: 44px; padding-inline: 11px; border: 1px solid var(--line); }
body:has(.category-dialog[open]) { overflow: hidden; }
@media (max-width: 1090px) {
    .container { width: calc(100% - 40px); }
    .site-menu { gap: 11px; }
    .site-menu a { font-size: 13px; }
    .catalog-layout { grid-template-columns: 203px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
    :root { --header: 58px; }
    .container { width: calc(100% - 24px); }
    .site-header .header-actions { display: none; }
    .menu-button { display: grid; place-items: center; }
    .site-menu { display: none; }
    .site-menu.is-open { position: absolute; top: 100%; right: 0; left: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; padding: 5px 12px; border-bottom: 1px solid var(--line); background: white; }
    .site-menu a { display: flex; align-items: center; min-height: 44px; }
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 15px; }
    .catalog-sidebar { position: static; padding: 8px; }
    .catalog-sidebar h2 { padding: 0 5px 4px; }
    html[data-platform] .catalog-sidebar { display: none; }
    .category-picker { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 5px 11px 5px 6px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .9rem; font-weight: 750; text-align: left; }
    .category-picker > i { color: var(--blue); }
    .category-picker .category-icon { width: 36px; height: 36px; }
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .search-hero { padding: 13px 0 15px; }
    .search-hero h1 { font-size: clamp(1.55rem, 7.15vw, 2rem); }
    .hero-summary { margin-top: 8px; font-size: .85rem; }
    .breadcrumbs { margin-bottom: 7px; }
    .search-form { margin-top: 11px; }
    .search-submit { padding-inline: 11px; }
    .search-examples { margin-top: 6px; }
    .hero-app { margin-top: 9px; }
    .catalog-header h2 { font-size: 1.17rem; }
    .category-header h3 { font-size: 1.05rem; }
    .category-header { gap: 8px; }
    .tools-grid { gap: 7px; }
    .tool-card { padding-inline: 9px; }
}
@media (max-width: 360px) {
    .tools-grid { grid-template-columns: minmax(0, 1fr); }
    .search-examples button { padding-inline: 8px; }
    .clear-search { width: 38px; }
}
