/* 6v4 IT — website stylesheet, based on the 6v4 IT corporate design (DMC look) */

@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }

/* Dark — default */
:root, :root[data-theme=dark] {
  --bg: #0E131B; --surface: #151C27; --surface-2: #1A2230;
  --line: #263043; --line-soft: #1F2838;
  --text: #E7ECF3; --text-2: #C2CAD6; --muted: #929DAD;
  --accent: #5B86F0; --accent-hover: #7A9DF4;
  --accent-fill: #3D6AE0; --accent-fill-hover: #3460D6; --on-accent: #FFFFFF;
  --accent-soft: #1C2A4A; --accent-line: #2F4677; --on-accent-soft: #7A9DF4;
  --ok: #6FCF8E; --ok-soft: #15291D;
  --warn: #F0B45A; --warn-soft: #2E2412;
  --danger: #F2877D; --danger-soft: #2E1715; --danger-line: #5A2A25;
  --led-ok: #4ADE80; --led-warn: #FBBF24; --led-off: #F87171;
  --shadow-pop: 0 8px 24px rgba(0,0,0,.45);
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: #F5F7FA; --surface: #FFFFFF; --surface-2: #F0F3F7;
  --line: #D5DCE6; --line-soft: #E8ECF2;
  --text: #121826; --text-2: #374151; --muted: #5B6576;
  --accent: #1F4FC9; --accent-hover: #1A43AD;
  --accent-fill: #1F4FC9; --accent-fill-hover: #1A43AD; --on-accent: #FFFFFF;
  --accent-soft: #E8EEFC; --accent-line: #B9C9F5; --on-accent-soft: #1A43AD;
  --ok: #166534; --ok-soft: #E6F4EA;
  --warn: #8A4B05; --warn-soft: #FDF1DE;
  --danger: #B42318; --danger-soft: #FDEDEB; --danger-line: #F3B8B1;
  --led-ok: #16A34A; --led-warn: #D97706; --led-off: #DC2626;
  --shadow-pop: 0 8px 24px rgba(16,24,40,.12);
  color-scheme: light;
}
:root {
  --side: #0A0F16; --side-hover: #141C28; --side-active: #1B2638;
  --side-text: #C2CAD6; --side-muted: #7D8898; --side-accent: #5B86F0;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 6px; --radius: 8px; --radius-lg: 12px; --radius-pill: 999px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/22px var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }

/* Header — dark in both themes, like the sidebar */
.top { position: sticky; top: 0; z-index: 50; background: var(--side); border-bottom: 1px solid #1B2638; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--side-text); }
.brand:hover { text-decoration: none; color: var(--side-text); }
.wordmark { font: 600 18px/1 var(--font); letter-spacing: -0.02em; color: #FFFFFF; }
.wordmark b { font-weight: 600; color: var(--side-accent); }
.brand .sep { width: 1px; height: 18px; background: #263043; }
.brand .svc { font: 500 13px/18px var(--font); color: var(--side-muted); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--radius); color: var(--side-text); font: 500 13px/18px var(--font); }
.nav a:hover { background: var(--side-hover); color: #FFFFFF; text-decoration: none; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid #263043; background: transparent; color: var(--side-text); cursor: pointer; transition: background-color .12s, color .12s; }
.theme-btn:hover { background: var(--side-hover); color: #FFFFFF; }
.theme-btn svg { width: 16px; height: 16px; }
.top .btn { flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 13px/18px var(--font); cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14px; }

/* Badges with LED */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font: 500 12px/16px var(--font); border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.ok::before { background: var(--led-ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.warn::before { background: var(--led-warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); } .badge.danger::before { background: var(--led-off); }
.badge.info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--on-accent-soft); } .badge.info::before { background: var(--accent); }
.badge.neutral { background: var(--surface-2); border-color: var(--line); color: var(--text-2); } .badge.neutral::before { background: var(--muted); }
.led { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--led-ok); box-shadow: 0 0 0 2px var(--ok-soft); flex: none; }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.eyebrow { display: flex; align-items: center; gap: 8px; font: 400 12.5px/18px var(--mono); color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); }
.display { font-size: 40px; line-height: 44px; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
h3 { font-size: 15px; line-height: 22px; }
.lead { font-size: 15px; line-height: 24px; color: var(--text-2); max-width: 600px; margin: 16px 0 0; }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head p { color: var(--text-2); margin: 8px 0 0; }
p { margin: 0; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero-art { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--side); overflow: hidden; }
.hero-art figcaption, .art figcaption { padding: 10px 16px; border-top: 1px solid #1B2638; font: 400 12px/16px var(--mono); color: var(--side-muted); background: var(--side); display: flex; justify-content: space-between; gap: 12px; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-2); font-size: 13px; line-height: 20px; }
.card .ico { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); margin-bottom: 14px; }
.card .ico svg { width: 16px; height: 16px; }
.card .meta { margin-top: 12px; font: 400 12px/16px var(--mono); color: var(--muted); }

/* Locations */
.loc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: stretch; }
.loc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.loc-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.loc-row:first-child { border-top: 0; }
.loc-row .city { font-weight: 500; }
.loc-row .region { font-size: 12.5px; color: var(--muted); }
.loc-row .code { font: 400 12.5px/18px var(--mono); color: var(--text-2); }
.map { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 16px; display: flex; flex-direction: column; }
.map svg { width: 100%; height: auto; flex: 1; }
.map .note { font: 400 12px/16px var(--mono); color: var(--muted); margin-top: 8px; }

/* Made in Germany */
.mig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.checks svg { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.checks strong { font-weight: 500; display: block; }
.checks span { color: var(--text-2); font-size: 13px; line-height: 20px; }
.art { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--side); }

/* Alert */
.alert { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); font-size: 13px; line-height: 20px; }
.alert svg { width: 18px; height: 18px; color: var(--on-accent-soft); margin-top: 1px; }
.alert strong { font-weight: 600; }

/* DMC screenshots */
.shot { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.shot-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar .url { flex: 1; max-width: 420px; height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line-soft); font: 400 11.5px/1 var(--mono); color: var(--muted); }
.shot-bar .url svg { width: 12px; height: 12px; }
.shot-caption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.shots { display: flex; flex-direction: column; gap: 40px; }

.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 460px; background: var(--bg); font-size: 13px; line-height: 20px; }
.app-side { background: var(--side); padding: 16px 12px; display: flex; flex-direction: column; }
.app-side .brand { margin-bottom: 16px; }
.app-side .brand .wordmark { font-size: 15px; }
.app-side .brand .svc { color: var(--side-text); font-weight: 600; }
.app-side .grp { font: 500 12px/16px var(--font); color: var(--side-muted); margin: 20px 8px 8px; }
.app-side .it { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--radius); color: var(--side-text); font: 500 13px/18px var(--font); margin-bottom: 2px; }
.app-side .it svg { width: 16px; height: 16px; flex: none; }
.app-side .it.on { background: var(--side-active); color: #FFFFFF; }
.app-side .it.on svg { color: var(--side-accent); }
.app-side .it.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--side-accent); }
.app-side .foot { margin-top: auto; padding: 0 8px; }
.app-side .foot div { display: flex; align-items: center; gap: 8px; font: 400 12px/16px var(--mono); color: var(--side-text); }
.app-side .foot small { display: block; margin-top: 4px; font: 400 11.5px/16px var(--mono); color: var(--side-muted); }
.app-main { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.app-head .ctx { font-size: 12.5px; color: var(--muted); }
.app-head h4 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.app-head .right { margin-left: auto; display: flex; gap: 8px; }
.kbd { font: 400 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; background: var(--surface-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat .l { font: 500 12px/16px var(--font); color: var(--muted); }
.stat .v { font: 600 26px/32px var(--mono); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .v.warn { color: var(--warn); }
.stat .c { font-size: 12px; color: var(--muted); }
.tbl { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.tbl-scroll { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.tbl th { text-align: left; background: var(--surface-2); color: var(--muted); font: 500 12px/16px var(--font); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line-soft); white-space: nowrap; color: var(--text-2); }
.tbl tr:first-child td { border-top: 0; }
.tbl td.m { font: 400 12.5px/20px var(--mono); }
.tbl td.first { color: var(--text); font-weight: 500; }
.tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.tbl-head { flex-wrap: wrap; }
.tbl-head h5 { white-space: nowrap; margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.tbl-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); font: 500 12px/1 var(--font); color: var(--text-2); background: var(--surface); }
.chip.on { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn.sm { height: 28px; border-radius: var(--radius-sm); font-size: 12.5px; padding: 0 10px; }
.meta-line { font: 400 12px/16px var(--mono); color: var(--muted); }

/* B2B + contact */
.b2b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.contact .mail { font: 400 15px/22px var(--mono); }

/* Footer */
.foot-site { border-top: 1px solid var(--line-soft); padding: 24px 0 40px; font-size: 12px; color: var(--muted); }
.foot-site .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; text-align: center; }
.foot-site a { color: var(--muted); }
.foot-site a:hover { color: var(--text); }
.foot-site .right { margin-left: auto; font-family: var(--mono); }

/* Legal pages */
.legal { max-width: 720px; padding: 56px 24px 72px; margin: 0 auto; }
.legal h1 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; margin-bottom: 24px; }
.legal h2 { font-size: 15px; line-height: 22px; margin: 28px 0 6px; letter-spacing: 0; }
.legal p, .legal li { color: var(--text-2); }
.legal .ph { font-family: var(--mono); font-size: 13px; color: var(--warn); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:active { transform: none; } }

@media (max-width: 960px) {
  .hero .wrap, .loc, .mig { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .top .theme-btn { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .display { font-size: 32px; line-height: 38px; }
  .g3, .g2, .b2b { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .contact { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .top .btn { display: none; }
  .brand .sep, .brand .svc { display: none; }
  section { padding: 48px 0; }
  .foot-site .right { margin-left: 0; }
}

/* Logo */
.logo { display: block; height: 28px; width: auto; }
.app-side .logo { height: 18px; }

/* Made in Germany: checks in two columns */
.checks.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; max-width: 920px; }
@media (max-width: 640px) { .checks.cols { grid-template-columns: minmax(0, 1fr); } }

/* Animations (illustrations and location LEDs) */
.anim .bl { animation: bl var(--d, 1.2s) step-end infinite; animation-delay: var(--o, 0s); }
@keyframes bl { 0% { opacity: 1; } 50% { opacity: .15; } }
.anim .fan { transform-box: fill-box; transform-origin: center; animation: spin var(--d, .7s) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.anim .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
@keyframes halo { 0% { opacity: .45; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.5); } }
.loc-row .led { animation: led 2.4s ease-out infinite; }
.loc-row:nth-child(2) .led { animation-delay: .5s; } .loc-row:nth-child(3) .led { animation-delay: 1s; }
.loc-row:nth-child(4) .led { animation-delay: 1.5s; } .loc-row:nth-child(5) .led { animation-delay: 2s; }
@keyframes led { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 100% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }
.map svg { max-height: 460px; }
@media (prefers-reduced-motion: reduce) {
  .anim .bl, .anim .fan, .anim .halo, .loc-row .led { animation: none; }
}
/* Switch port activity: mostly on, short synchronous flicker, sweeping across the ports */
.anim .act { animation: act var(--d, 2s) linear infinite; animation-delay: var(--o, 0s); }
@keyframes act { 0%, 62% { opacity: 1; } 64%, 70% { opacity: .15; } 72%, 76% { opacity: 1; } 78%, 84% { opacity: .15; } 86%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .anim .act { animation: none; } }

/* Language switcher */
.lang { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid #263043; border-radius: var(--radius); }
.lang a { display: flex; align-items: center; height: 28px; padding: 0 8px; border-radius: var(--radius-sm); font: 500 12px/1 var(--mono); color: var(--side-muted); }
.lang a:hover { color: #FFFFFF; background: var(--side-hover); text-decoration: none; }
.lang a[aria-current] { color: #FFFFFF; background: var(--side-active); }
@media (max-width: 960px) { .top .lang { margin-left: auto; } .top .lang + .theme-btn { margin-left: 0; } }
.legal h2 { font-size: 18px; line-height: 26px; margin: 40px 0 8px; }
.legal h3 { font-size: 15px; line-height: 22px; margin: 24px 0 6px; }
.legal h4 { font-size: 14px; line-height: 22px; margin: 16px 0 4px; font-weight: 600; color: var(--text); }
.legal p { margin: 0 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 10px; }
.legal li { margin-bottom: 6px; }
.legal .src { font-size: 12px; color: var(--muted); margin-top: 32px; }

/* "What is my IP" tool band */
.ipcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; }
.ipcard .ico { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--on-accent-soft); }
.ipcard .ico svg { width: 20px; height: 20px; }
.ipcard .eyebrow { margin-bottom: 4px; }
.ipcard .ip-text { color: var(--text-2); margin-top: 6px; }
#ip { padding: 40px 0; }
@media (max-width: 640px) { .ipcard { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* Mobile / tablet menu */
.menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid #263043; background: transparent; color: var(--side-text); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn:hover { background: var(--side-hover); color: #FFFFFF; }
@media (max-width: 960px) {
  .top .wrap { position: relative; gap: 8px; }
  .menu-btn { display: inline-flex; order: 3; }
  .top .lang { margin-left: auto; }
  .top .theme-btn { width: 40px; height: 40px; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 8px 16px 16px; background: var(--side); border-bottom: 1px solid #1B2638; }
  .nav.open { display: flex; }
  .nav a { height: 44px; padding: 0 12px; font-size: 15px; }
  .lang a { height: 34px; padding: 0 10px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .display { font-size: 30px; line-height: 36px; }
  .hero { padding: 40px 0 48px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  h2 { font-size: 21px; line-height: 28px; }
  .loc-row { padding: 12px 14px; }
  .map { padding: 8px; }
  .shot-bar .url { max-width: none; }
  .app-main { padding: 16px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat .v { font-size: 22px; line-height: 28px; }
  .ipcard .btn { justify-content: center; }
  .contact .btn { justify-content: center; }
  .legal { padding: 40px 16px 56px; }
  .legal p, .legal li { overflow-wrap: anywhere; }
}
@media (max-width: 960px) and (min-width: 641px) { .hero-art { max-width: 560px; } }
