/* Страницы «Перевод мулине X в Y» (/converter/<пара>/). Собираются скриптом backend/tools/converter_pairs.py */
:root {
    --green: #2ecc71; --bg: #1a1a1a; --bg-2: #222; --surface: #2a2a2a; --surface-2: #333;
    --line: #333; --line-2: #444; --line-3: #555; --text: #fff; --text-2: #bbb; --text-3: #8a8a8a;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
       font-family: var(--font); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
main { flex-grow: 1; padding-bottom: 72px; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page-head { position: relative; isolation: isolate; padding: 40px 0 24px; }
.page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
    background-image: linear-gradient(#262626 1px, transparent 1px), linear-gradient(90deg, #262626 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000 10%, transparent 70%);
            mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000 10%, transparent 70%); }
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.page-head h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.page-head p { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 70ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
       border: 1px solid var(--line-3); background: var(--surface); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn:hover { border-color: var(--green); }
.btn-green { background: var(--green); border-color: var(--green); color: #0b2a17; }
.btn-green:hover { background: #27ae60; }

.note { margin: 8px 0 18px; padding: 12px 16px; border-radius: 12px; background: #2b2717; border: 1px solid #4a4220; color: #e8dcae; font-size: 14px; line-height: 1.5; }
.search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search label { font-weight: 700; font-size: 14px; color: var(--text-2); }
.search input { flex: 1 1 220px; max-width: 320px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-3);
                background: var(--bg-2); color: #fff; font: inherit; font-size: 16px; outline: none; }
.search input:focus { border-color: var(--green); }

.table-wrap { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--surface); }
table.pairs { width: 100%; border-collapse: collapse; font-size: 15px; }
.pairs thead th { background: #262626; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--text-3);
                  text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.pairs td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pairs tr:last-child td { border-bottom: 0; }
.pairs tr:target td, .pairs tr.hit td { background: rgba(46, 204, 113, .1); }
.pairs td b { font-weight: 700; letter-spacing: .02em; }
.pairs td:nth-child(1), .pairs td:nth-child(3) { white-space: nowrap; }
.ar { color: var(--text-3); width: 24px; padding-left: 0; padding-right: 0; text-align: center; }
.sw { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; margin-right: 9px;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.q { color: var(--text-2); }
.lv { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-right: 10px; white-space: nowrap; }
.l1 { background: rgba(46, 204, 113, .18); color: #7be3a6; }
.l2 { background: rgba(46, 204, 113, .12); color: #9fe0b9; }
.l3 { background: rgba(241, 196, 15, .14); color: #f3d76a; }
.l4 { background: rgba(230, 126, 34, .16); color: #f2b37a; }
.l5 { background: rgba(231, 76, 60, .16); color: #f19a90; }
.alt { white-space: nowrap; font-size: 13.5px; color: var(--text-3); }
.alt .sw { width: 16px; height: 16px; border-radius: 4px; margin: 0 6px 0 4px; }
.alt b { color: var(--text-2); }

.text { padding-top: 40px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.text h2 { color: #fff; font-size: 22px; line-height: 1.25; margin: 34px 0 10px; letter-spacing: -0.01em; }
.text a { color: var(--green); }
.list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.list li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.list .sw { width: 18px; height: 18px; margin: 0 6px 0 0; }
.list li .sw:nth-of-type(2) { margin-left: 6px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-3); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.pill:hover { border-color: var(--green); }

@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .page-head { padding-top: 28px; }
    .page-head p { font-size: 16px; }
    .actions .btn { width: 100%; }
    .pairs { font-size: 14px; }
    .pairs td { padding: 9px 8px; }
    .pairs thead th { padding: 9px 8px; }
    .sw { width: 18px; height: 18px; margin-right: 6px; }
    .q .lv { margin: 0 0 3px; }
    .alt { display: block; }
    .search input { max-width: none; }
}
