/* Mixanich Smart Mirror — components and layout. Uses variables from tokens.css */
/* ---------- base ---------- */
body { margin: 0; font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 26px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.mx, .mx * { box-sizing: border-box; }
.mx a { color: var(--accent); text-decoration: none; }
.mx a:hover { text-decoration: underline; }
.mx :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-12); }
@media (max-width: 720px) { .mx-container { padding: 0 var(--space-4); } }

/* ---------- brand fills ---------- */
.mx-gradient { background: linear-gradient(to top right, var(--aqua) 0%, var(--science-blue) 48%); color: var(--white); }
.mx-stripes { background-image: repeating-linear-gradient(135deg, currentColor 0 var(--stripe-width), transparent var(--stripe-width) var(--stripe-pitch)); }
.mx-stripes-overlay { position: relative; isolation: isolate; }
.mx-stripes-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: repeating-linear-gradient(135deg, var(--white) 0 1px, transparent 1px 10px); pointer-events: none; }
.mx-grad-text { background: linear-gradient(to right, var(--aqua), var(--science-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- type helpers ---------- */
.mx-eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.mx-lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); }
.mx-muted { color: var(--ink-muted); }

/* ---------- Button ---------- */
.mx-btn { display: inline-flex; align-items: center; gap: var(--space-2); font: inherit; font-weight: 700; font-size: 15px; line-height: 20px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.mx-btn-primary { background: var(--action); color: var(--on-action) !important; }
.mx-btn-primary:hover { background: var(--ink); color: var(--surface) !important; }
.mx-btn-outline { background: transparent; border-color: var(--ink); color: var(--ink) !important; }
.mx-btn-outline:hover { background: var(--ink); color: var(--surface) !important; }
.mx-btn-white { background: var(--white); color: var(--science-blue) !important; }
.mx-btn-white:hover { background: var(--ebony-clay); color: var(--white) !important; }
.mx-btn .mx-arrow { font-weight: 400; }

/* ---------- RunningHeader: "MIXANICH SMART MIRROR ——— LogoBook Design" ---------- */
.mx-running { display: flex; align-items: center; gap: var(--space-4); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.mx-running::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--line); }
.mx-running > :last-child { order: 2; }
.mx-running .mx-caps { text-transform: uppercase; letter-spacing: .04em; }

/* ---------- SectionTitle: "| Зміст" ---------- */
.mx-title { display: flex; align-items: flex-start; gap: var(--space-4); margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; color: var(--ink); }
.mx-title::before { content: ""; width: var(--bar-width); height: 32px; margin-top: 4px; background: var(--accent); flex: none; }

/* ---------- CrossGrid: 2 × 5 crosses ---------- */
.mx-crosses { display: grid; grid-template-columns: repeat(5, 12px); gap: 8px 20px; color: var(--line); }
.mx-crosses i { width: 12px; height: 12px; position: relative; }
.mx-crosses i::before, .mx-crosses i::after { content: ""; position: absolute; left: 5px; top: 0; width: 2px; height: 12px; background: currentColor; transform: rotate(45deg); }
.mx-crosses i::after { transform: rotate(-45deg); }

/* ---------- Chevron list: "› Про нас" ---------- */
.mx-chevrons { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.mx-chevrons li { display: grid; grid-template-columns: 32px 1fr; }
.mx-chevrons li::before { content: "›"; color: var(--accent); font-weight: 700; }
.mx-chevrons li.is-current::before { content: "⟶"; }

/* ---------- Mark tile (CSS stripe square echoing the logo mark) ---------- */
.mx-tile { width: 48px; height: 48px; color: var(--accent); }

/* ---------- NavBar ---------- */
.mx-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.mx-nav-in { display: flex; align-items: center; gap: var(--space-8); height: 80px; }
.mx-nav img { height: 48px; width: auto; display: block; }
.mx-nav-links { display: flex; gap: var(--space-8); margin-left: auto; font-size: 15px; }
.mx-nav-links a { color: var(--ink); }
@media (max-width: 860px) { .mx-nav-links { display: none; } .mx-nav .mx-btn { margin-left: auto; } }
@media (max-width: 640px) {
  .mx-nav .mx-login { padding: 8px; }
  .mx-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- MirrorWidget ---------- */
.mx-mirror { position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 420px; border: 10px solid var(--ebony-clay); outline: 1px solid var(--line); padding: var(--space-6); display: flex; flex-direction: column; justify-content: space-between; }
.mx-mirror-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.mx-clock { display: block; font-size: 56px; line-height: 56px; font-weight: 400; font-variant-numeric: tabular-nums; }
.mx-mirror small { display: block; font-size: 12px; line-height: 16px; opacity: .9; }
.mx-temp { font-size: 32px; line-height: 36px; font-weight: 400; }
.mx-forecast { display: flex; gap: var(--space-6); margin-top: var(--space-4); font-size: 12px; line-height: 16px; text-align: right; }
.mx-forecast b { display: block; font-size: 16px; line-height: 20px; font-weight: 500; }
.mx-note { background: var(--night); color: var(--bright-gray); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 20px; font-weight: 700; }
.mx-note span { display: block; font-weight: 500; color: var(--bright-gray); }
.mx-note .mx-note-actions { display: flex; gap: var(--space-4); margin-top: var(--space-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }
.mx-glint { position: absolute; width: 2px; height: 56px; background: rgba(255,255,255,.7); transform: rotate(45deg); }

/* ---------- Hero ---------- */
.mx-hero { background: var(--surface); color: var(--ink); padding: var(--space-24) 0; overflow: hidden; }
.mx-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-12); align-items: center; }
.mx-hero h1 { margin: var(--space-4) 0 var(--space-6); font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -.01em; }
.mx-hero .mx-lead { max-width: 520px; margin: 0 0 var(--space-8); }
.mx-hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.mx-hero .mx-crosses { margin-top: var(--space-16); }
.mx-hero-art { display: flex; justify-content: center; }
@media (max-width: 860px) { .mx-hero { padding: var(--space-16) 0; } .mx-hero-in { grid-template-columns: 1fr; } .mx-hero h1 { font-size: 44px; line-height: 50px; } }

/* ---------- Section ---------- */
.mx-section { padding: var(--space-24) 0; background: var(--surface); color: var(--ink); }
.mx-section.is-alt { background: var(--surface-alt); }
.mx-section-head { display: grid; gap: var(--space-6); margin-bottom: var(--space-12); }
.mx-section-head p { margin: 0; max-width: 640px; }
@media (max-width: 720px) { .mx-section { padding: var(--space-16) 0; } }

/* 404 page: the requested address under the message, so a wrong link is easy to read and report */
.mx-nf .mx-section-head { margin-bottom: var(--space-8); }
.mx-nf-url { margin: 0; font-size: 14px; word-break: break-all; }
.mx-nf-url code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mx-nf .mx-crosses { margin-top: var(--space-12); }

/* ---------- FeatureCard ---------- */
.mx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-8); }
.mx-card { background: var(--surface); border: 1px solid var(--line); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
.mx-section.is-alt .mx-card { background: var(--surface); }
.mx-card-num { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.mx-card h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.mx-card p { margin: 0; color: var(--ink-muted); }
.mx-card .mx-tile { width: 40px; height: 40px; }

/* ---------- Audience split ---------- */
.mx-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.mx-split-art { background: var(--surface-alt); aspect-ratio: 4 / 5; overflow: hidden; }
.mx-split-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-split .mx-chevrons { gap: var(--space-6); }
.mx-split .mx-chevrons b { display: block; font-size: 20px; line-height: 28px; }
.mx-split .mx-chevrons span { color: var(--ink-muted); }
@media (max-width: 860px) { .mx-split { grid-template-columns: 1fr; } .mx-split-art { aspect-ratio: 16 / 9; } }

/* ---------- CTA band ---------- */
.mx-band { padding: var(--space-24) 0; overflow: hidden; }
.mx-band-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-12); align-items: center; }
.mx-band-mark { width: 220px; height: 220px; color: var(--white); opacity: .9; }
.mx-band h2 { margin: 0 0 var(--space-4); font-size: 44px; line-height: 50px; font-weight: 700; color: var(--white); }
.mx-band p { margin: 0 0 var(--space-8); font-size: 19px; line-height: 30px; color: var(--white); }
@media (max-width: 860px) { .mx-band.mx-gradient { background: linear-gradient(to top, var(--aqua) 0%, var(--science-blue) 60%); } .mx-band-mark { display: none; } .mx-band-in { grid-template-columns: 1fr; } .mx-band-in > * { min-width: 0; } .mx-band h2 { font-size: 32px; line-height: 40px; } }

/* ---------- Footer ---------- */
.mx-footer { background: var(--surface); color: var(--ink); padding: var(--space-16) 0 var(--space-8); }
.mx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); margin: var(--space-12) 0; }
.mx-footer img { height: 36px; width: auto; display: block; margin-bottom: var(--space-4); }
.mx-footer h4 { margin: 0 0 var(--space-3); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-muted); }
.mx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 15px; }
.mx-footer ul a { color: var(--ink); }
.mx-crumbs { font-size: 13px; color: var(--ink-muted); }
.mx-crumbs span { color: var(--accent); padding: 0 6px; }
@media (max-width: 720px) { .mx-footer-grid { grid-template-columns: 1fr; } }

/* ---------- logo swap by theme ---------- */
.mx-logo-dark { display: none !important; }
:root[data-theme="dark"] .mx-logo-light { display: none !important; }
:root[data-theme="dark"] .mx-logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mx-logo-light { display: none !important; } :root:not([data-theme="light"]) .mx-logo-dark { display: block !important; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mx-btn { transition: none; } }
.mx-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.mx-hero h1, .mx-band h2, .mx-title { text-wrap: balance; }
section[id], footer[id] { scroll-margin-top: 80px; }

/* ---------- Mirror compliments (rotating text, no background) ---------- */
.mx-compliment { margin: 0; min-height: 64px; display: flex; align-items: flex-end; justify-content: center; text-align: center; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--white); text-shadow: 0 1px 2px rgba(22, 24, 38, .35); text-wrap: balance; transition: opacity .7s ease, transform .7s ease, filter .7s ease; }
.mx-compliment.is-out { opacity: 0; transform: translateY(8px); filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .mx-compliment { transition: opacity .4s linear; } .mx-compliment.is-out { transform: none; filter: none; } }

/* ---------- Mirror weather + forecast (ported from mixanichMirrorOS weather/forecast modules) ---------- */
.mx-mirror { justify-content: flex-start; gap: var(--space-6); }
.mx-mirror .mx-compliment { margin-top: auto; }
.mx-mirror-top { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: start; }
.mx-mirror-clock { text-align: right; }
.mx-mirror-clock .mx-clock { font-size: 44px; line-height: 44px; }
.mx-weather { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; min-width: 0; }
.mx-w-info { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 11px; line-height: 14px; color: rgba(255,255,255,.85); }
.mx-w-info > span { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.mx-w-sub { width: 14px; height: 14px; filter: invert(1); }
.mx-w-main { display: flex; align-items: center; justify-content: flex-start; gap: 4px; margin-top: 2px; }
.mx-w-icon { width: 36px; height: 36px; filter: invert(1); }
.mx-w-temp { font-size: 36px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.mx-w-temp sup { font-size: 50%; font-weight: 400; opacity: .8; vertical-align: top; position: relative; top: .1em; }
.mx-w-desc { font-size: 13px; line-height: 16px; color: var(--white); }
.mx-w-city { font-size: 10px; line-height: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.mx-w-feels { font-size: 10px; line-height: 13px; letter-spacing: .06em; color: rgba(255,255,255,.85); }
.mx-fc { align-self: flex-start; border-collapse: separate; border-spacing: 0; font-size: 12px; color: var(--white); font-variant-numeric: tabular-nums; }
.mx-fc td { padding: 3px 6px 3px 0; text-align: left; border-bottom: 1px solid rgba(255,255,255,.15); vertical-align: middle; }
.mx-fc tr:last-child td { border-bottom: none; }
.mx-fc .day { letter-spacing: .1em; color: rgba(255,255,255,.85); }
.mx-fc img { width: 20px; height: 20px; display: block; filter: invert(1); }
.mx-fc .min { color: rgba(255,255,255,.7); }
@media (prefers-reduced-motion: reduce) { .mx-w-icon { animation: none; } }
@media (max-width: 400px) { .mx-mirror-clock .mx-clock { font-size: 36px; line-height: 36px; } .mx-w-temp { font-size: 32px; } .mx-w-icon { width: 32px; height: 32px; } }

/* ---------- Remark under sections 01 / 02 ---------- */
.mx-remark { margin: var(--space-8) 0 0; max-width: 640px; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.mx-remark b { color: var(--ink); font-weight: 700; }

/* ---------- Order form ---------- */
.mx-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-8); max-width: 820px; }
.mx-field { display: grid; align-content: start; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.mx-field-wide { grid-column: 1 / -1; }
.mx-field label, .mx-field legend { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); padding: 0; }
.mx-req { color: var(--accent); }
.mx-opt { font-weight: 500; color: var(--ink-muted); margin-left: 4px; }
.mx-field input[type="text"], .mx-field input[type="tel"], .mx-field input[type="email"] {
  font: inherit; font-size: 16px; line-height: 24px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); padding: 11px 14px; width: 100%; height: 48px; box-sizing: border-box; }
.mx-field input::placeholder { color: var(--ink-muted); opacity: .7; }
.mx-field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.mx-field input[aria-invalid="true"] { border-color: #c62828; }
.mx-error { margin: 0; min-height: 18px; font-size: 13px; line-height: 18px; color: #c62828; }
[data-theme="dark"] .mx-error, .is-dark .mx-error { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mx-error { color: #ff8a80; } :root:not([data-theme="light"]) .mx-field input[aria-invalid="true"] { border-color: #ff8a80; } }
.mx-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mx-chip { position: relative; cursor: pointer; }
.mx-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mx-chip span { display: inline-block; padding: 8px 16px; font-size: 15px; font-weight: 500; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); transition: background .15s, color .15s, border-color .15s; }
.mx-chip input:checked + span { background: var(--action); border-color: var(--action); color: var(--on-action); }
.mx-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-check { display: grid !important; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; font-weight: 500 !important; cursor: pointer; }
.mx-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--action); }
.mx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mx-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.mx-form-status { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.mx-form-status.is-ok { color: var(--accent); font-weight: 700; }
.mx-form-status.is-error { color: #c62828; }
.mx-btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 720px) { .mx-form { grid-template-columns: 1fr; } }

/* ---------- Order popup ---------- */
.mx-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--radius-none); background: var(--surface); color: var(--ink); box-shadow: none; overflow: auto; }
.mx-dialog::backdrop { background: rgba(22, 24, 38, .72); }
.mx-dialog-in { position: relative; padding: var(--space-12) var(--space-8) var(--space-8); border-top: 6px solid transparent; border-image: linear-gradient(to right, var(--aqua), var(--science-blue)) 1; }
.mx-dialog .mx-title { margin: var(--space-2) 0 var(--space-3); }
.mx-dialog-lead { margin: 0 0 var(--space-6); font-size: 15px; line-height: 24px; }
.mx-dialog .mx-form { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); }
.mx-dialog-close { position: absolute; top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; border-radius: var(--radius-sm); }
.mx-dialog-close:hover { background: var(--surface-alt); }
.mx-dialog-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-dialog[open] { animation: mx-pop .25s ease-out; }
@keyframes mx-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mx-dialog[open] { animation: none; } }
@media (max-width: 720px) { .mx-dialog .mx-form { grid-template-columns: 1fr; } .mx-dialog-in { padding: var(--space-12) var(--space-4) var(--space-6); } }
body.mx-no-scroll { overflow: hidden; }

/* ---------- Language switch (UA / EN) ---------- */
.mx-lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.mx-lang button { font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1; padding: 8px 10px; border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; }
.mx-lang button + button { border-left: 1px solid var(--line); }
.mx-lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.mx-lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.mx-lang button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.mx-nav-in { gap: var(--space-6); }
@media (max-width: 860px) { .mx-lang { margin-left: auto; } .mx-nav .mx-btn { margin-left: 0; } }
@media (max-width: 480px) { .mx-nav-in { gap: var(--space-3); } .mx-nav .mx-btn { padding: 8px 12px; font-size: 14px; } .mx-lang button { padding: 7px 8px; font-size: 12px; } }
@media (max-width: 380px) { .mx-nav-in { gap: var(--space-2); } }

/* ---------- Order popup: thank-you screen ---------- */
.mx-thanks { display: grid; justify-items: center; text-align: center; gap: var(--space-4); padding: var(--space-6) 0 var(--space-4); }
.mx-thanks[hidden] { display: none; }
.mx-thanks-mark { width: 96px; height: 96px; }
.mx-thanks .mx-title { margin: 0; justify-content: center; }
.mx-thanks .mx-title::before { display: none; }
.mx-thanks .mx-title:focus { outline: none; }
.mx-thanks-text { margin: 0 0 var(--space-4); max-width: 420px; font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.mx-thanks-text b { color: var(--ink); white-space: nowrap; }
.mx-thanks-check { stroke-dasharray: 60; stroke-dashoffset: 0; animation: mx-check .5s .15s ease-out both; }
@keyframes mx-check { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mx-thanks-check { animation: none; } }
/* Light / dark switch (sun / moon), as on mydevice. */
.mx-theme { display: inline-flex; align-items: center; flex: none; }
.mx-theme button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; }
.mx-theme button:hover { color: var(--ink); }
.mx-theme button[aria-pressed="true"] { color: var(--accent); }
.mx-theme button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 860px) { .mx-lang { margin-left: auto; } }
@media (max-width: 480px) { .mx-theme button { width: 26px; height: 26px; } .mx-theme svg { width: 16px; height: 16px; } }
.mx-login { gap: 8px; }
.mx-login svg { flex: none; }
@media (max-width: 480px) {
  .mx-nav .mx-login { padding: 8px; }
  .mx-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Mobile menu (burger, up to 860px) ---------- */
/* Header keeps logo, account and burger; links, language and theme go into the panel (right-aligned) */
.mx-burger { display: none; place-items: center; width: 40px; height: 40px; padding: 0; flex: none; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.mx-burger:hover { border-color: var(--ink); }
.mx-burger:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-burger .mx-burger-close { display: none; }
.mx-nav.is-open .mx-burger .mx-burger-open { display: none; }
.mx-nav.is-open .mx-burger .mx-burger-close { display: inline; }
.mx-nav-links .mx-nav-login, .mx-nav-tools { display: none; }
@media (max-width: 860px) {
  .mx-burger { display: grid; }
  .mx-nav-in > .mx-lang, .mx-nav-in > .mx-theme { display: none; }
  .mx-nav .mx-login { margin-left: auto; }
  .mx-nav.is-open .mx-nav-links { display: flex; }
  .mx-nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--space-2) var(--space-12) var(--space-4); text-align: right; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(22, 24, 38, .35); }
  .mx-nav-links a { display: block; padding: var(--space-3) 0; font-size: 17px; line-height: 24px; border-top: 1px solid var(--line); }
  .mx-nav-links a:first-child { border-top: 0; }
  .mx-nav-links a:hover { text-decoration: none; color: var(--accent); }
  .mx-nav-tools { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
  .mx-nav-tools .mx-lang { margin: 0; }
}
@media (max-width: 720px) { .mx-nav-links { padding-left: var(--space-4); padding-right: var(--space-4); } }
@media (max-width: 640px) { .mx-nav img { height: 40px; } }
/* Phones: "My account" moves from the header into the menu */
@media (max-width: 480px) {
  .mx-nav-in { gap: var(--space-3); }
  .mx-nav .mx-login { display: none; }
  .mx-burger { margin-left: auto; }
  .mx-nav-links .mx-nav-login { display: block; font-weight: 700; color: var(--accent); }
}
@media (max-width: 340px) { .mx-nav img { height: 34px; } }
